fix websocket failure to reconnect

This commit is contained in:
balzack 2022-09-20 21:08:44 -07:00
parent b4b6e11907
commit 529dcf9422

View File

@ -117,7 +117,7 @@ export function useAppContext() {
ws.current.onclose = () => {}
ws.current.onopen = () => {}
ws.current.onerror = () => {}
setWebsocket(token);
setWebsocket(server, token);
if (delay.current < 15) {
delay.current += 1;
}