Merge pull request #185 from cubedro/develop

Added send all stats on socket reconnect
This commit is contained in:
Marian OANCΞA 2015-06-17 06:38:14 +03:00
commit c012e377e5

View File

@ -298,6 +298,10 @@ Node.prototype.setupSockets = function()
{ {
self._socket = true; self._socket = true;
console.success('wsc', 'Socket reconnected successfully after', opts.duration, 'ms'); console.success('wsc', 'Socket reconnected successfully after', opts.duration, 'ms');
self.getLatestBlock();
self.getPending();
self.getStats(true);
}) })
.on('reconnect timeout', function (err, opts) .on('reconnect timeout', function (err, opts)
{ {