Do not kill entire chat window when websocket closes.
Reopens the websocket on close. Prevents badly configured reverse proxies from making the application stop working.
This commit is contained in:
parent
96f67c7028
commit
f03f665e08
1 changed files with 1 additions and 1 deletions
|
@ -194,7 +194,7 @@ const useSocket = (
|
|||
|
||||
ws.onclose = () => {
|
||||
clearTimeout(timeoutId);
|
||||
setError(true);
|
||||
setWs(null);
|
||||
console.log('[DEBUG] closed');
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue