mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-20 13:54:36 +01: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