Simplify on connect (#11176)

This commit is contained in:
Nicolas Mowen authored and GitHub committed 2024-04-30 07:27:39 -06:00
1 parent 461442b399
commit 90bdb07463
2 files changed
+7 -5

No files matched your search

+7 -1
View File
@@ -65,7 +65,13 @@ function useValue(): useValueReturn {
setWsState({ ...wsState, [data.topic]: data.payload });
}
},
onOpen: () => {},
onOpen: () => {
sendJsonMessage({
topic: "onConnect",
message: "",
retain: false,
});
},
shouldReconnect: () => true,
});