autolevel.js

Automatically use the right abstract-leveldown module for your configuration
git clone git://git.finwo.net/lib/autolevel.js
Log | Files | Refs | README | LICENSE

commit 8287138d505a8372a712079a99b3613c065af3bc
parent fd413ed0bdb2739209373c049db0a2889977a784
Author: finwo <finwo@pm.me>
Date:   Fri, 16 Nov 2018 14:30:26 +0100

Allow slow-starting heartbeat

Diffstat:
Msrc/custom/wsrpc.js | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/src/custom/wsrpc.js b/src/custom/wsrpc.js @@ -89,6 +89,7 @@ module.exports = function (location, options, callback) { ws.isAlive = true; }); setTimeout(function heartbeat() { + if (!ws.readyState) return setTimeout(heartbeat,100); if (!ws.isAlive) return reconnect(); ws.isAlive = false; ws.ping();