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:
ProjectMoon 2024-07-30 16:03:38 +02:00 committed by XDA
parent 0f9258f008
commit 9addff6c13

View file

@ -183,7 +183,7 @@ const useSocket = (
ws.onclose = () => { ws.onclose = () => {
clearTimeout(timeoutId); clearTimeout(timeoutId);
setError(true); setWs(null);
console.log('[DEBUG] closed'); console.log('[DEBUG] closed');
}; };