Fix reconnection after close

This commit is contained in:
koalasat
2024-11-11 23:31:46 +01:00
parent b2713ff83f
commit 3907983ffe

View File

@ -64,8 +64,7 @@ class RoboPool {
});
connection.onClose(() => {
console.log(`Disconnected from ${url}. Attempting to reconnect...`);
setTimeout(connectRelay, 1000);
console.log(`Disconnected from ${url}`);
});
this.webSockets[url] = connection;