mirror of
https://github.com/RoboSats/robosats.git
synced 2025-09-13 00:56:22 +00:00
Fix reconnection after close
This commit is contained in:
@ -64,8 +64,7 @@ class RoboPool {
|
|||||||
});
|
});
|
||||||
|
|
||||||
connection.onClose(() => {
|
connection.onClose(() => {
|
||||||
console.log(`Disconnected from ${url}. Attempting to reconnect...`);
|
console.log(`Disconnected from ${url}`);
|
||||||
setTimeout(connectRelay, 1000);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
this.webSockets[url] = connection;
|
this.webSockets[url] = connection;
|
||||||
|
|||||||
Reference in New Issue
Block a user