mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 04:09:29 +02:00
Add on close connection reconect to web sockets
This commit is contained in:
@@ -22,6 +22,9 @@ export function ConnectToChat() {
|
||||
};
|
||||
|
||||
webSocket.onclose = function () {
|
||||
|
||||
webSocket = new WebSocket(BackendWebSocketUrl);
|
||||
|
||||
console.log('Connection closed');
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user