forked from Github/frigate
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