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
0f9258f008
commit
9addff6c13
1 changed files with 1 additions and 1 deletions
|
@ -183,7 +183,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