Fix reconnection after close

This commit is contained in:
koalasat 2024-11-11 23:31:46 +01:00
parent b2713ff83f
commit 3907983ffe
No known key found for this signature in database
GPG Key ID: 2F7F61C6146AB157

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;