test for not killing entire window when ws closes

This commit is contained in:
projectmoon 2024-07-30 12:34:03 +02:00
parent a9f960a652
commit f8f1b31cb3
1 changed files with 2 additions and 2 deletions

View File

@ -215,7 +215,7 @@ const useSocket = (
ws.onclose = () => {
clearTimeout(timeoutId);
setError(true);
setWs(null); // forces websocket to reopen when needed.
console.log('[DEBUG] closed');
};