1
0
mirror of https://github.com/KubaPro010/fm-dx-webserver.git synced 2026-02-26 22:13:53 +01:00

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

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 = () => {