mirror of
https://github.com/balzack/databag.git
synced 2025-02-14 12:39:17 +00:00
fix websocket failure to reconnect
This commit is contained in:
parent
b4b6e11907
commit
529dcf9422
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user