Merge pull request #185 from cubedro/develop
Added send all stats on socket reconnect
This commit is contained in:
commit
c012e377e5
@ -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)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user