mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-19 23:08:08 +02:00
Simplify on connect (#11176)
This commit is contained in:
@@ -65,7 +65,13 @@ function useValue(): useValueReturn {
|
||||
setWsState({ ...wsState, [data.topic]: data.payload });
|
||||
}
|
||||
},
|
||||
onOpen: () => {},
|
||||
onOpen: () => {
|
||||
sendJsonMessage({
|
||||
topic: "onConnect",
|
||||
message: "",
|
||||
retain: false,
|
||||
});
|
||||
},
|
||||
shouldReconnect: () => true,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user