mirror of
https://github.com/RoboSats/robosats.git
synced 2024-12-13 19:06:26 +00:00
Fix reconnection after close
This commit is contained in:
parent
b2713ff83f
commit
3907983ffe
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user