mirror of
https://github.com/balzack/databag.git
synced 2025-02-14 20:49:16 +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.onclose = () => {}
|
||||||
ws.current.onopen = () => {}
|
ws.current.onopen = () => {}
|
||||||
ws.current.onerror = () => {}
|
ws.current.onerror = () => {}
|
||||||
setWebsocket(token);
|
setWebsocket(server, token);
|
||||||
if (delay.current < 15) {
|
if (delay.current < 15) {
|
||||||
delay.current += 1;
|
delay.current += 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user