Add auto-disconnect config to keepalive constructor

Disconnects on no keepalive response by default.

// FREEBIE
This commit is contained in:
lilia 2015-07-27 20:17:00 -07:00
parent d9fe783488
commit 7d2b41db11
3 changed files with 30 additions and 10 deletions

View file

@ -73,7 +73,7 @@
console.log('Unknown websocket message', request.path);
}
});
new KeepAlive(wsr);
new KeepAlive(wsr, { disconnect: false });
});
}).then(function() {
return generateKeys(100, progressCallback);