added send all stats on socket reconnect

This commit is contained in:
cubedro 2015-06-17 06:37:59 +03:00
parent cde1395482
commit 9b3eeb1295
1 changed files with 4 additions and 0 deletions

View File

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