Skip to content
This repository was archived by the owner on Jun 12, 2018. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions node.bittrex.api.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,10 @@ var NodeBittrexApi = function() {
},
disconnected: function() {
((opts.verbose) ? console.log('Websocket disconnected') : '');
// restart on disconnect
setImmediate(function () {
wsclient.start();
});
},
onerror: function(error) {
((opts.verbose) ? console.log('Websocket onerror: ', error) : '');
Expand Down