commit 176cf6e351b9cd94eadf25a47ada1d80b8dc00a2
parent 17539ad43de3f9838c6bed40ad9c0e53ee63fc4e
Author: finwo <finwo@pm.me>
Date: Fri, 16 Nov 2018 13:12:17 +0100
Whoops, forgot to set proper timeouts
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/custom/wsrpc.js b/src/custom/wsrpc.js
@@ -92,7 +92,8 @@ module.exports = function (location, options, callback) {
if (!ws.isAlive) return reconnect();
ws.isAlive = false;
ws.ping();
- })
+ setTimeout(heartbeat,10000);
+ },100)
}
// Initial connect