UI autoreconnect and resume on lost connection

This commit is contained in:
AmateurAudioDude
2024-08-13 02:54:32 +10:00
committed by GitHub
parent 8676b866dc
commit 6f4b23265a
-1
View File
@@ -222,7 +222,6 @@ function sendPingRequest() {
// Automatic reconnection on WebSocket close
if (socket.readyState === WebSocket.CLOSED || socket.readyState === WebSocket.CLOSING) {
console.log("Main/UI attempting to reconnect...", socketAddress);
socket = new WebSocket(socketAddress);
socket.onopen = () => {