From 9b3eeb129580ff09787b3871e6b5aa4e4af8a09d Mon Sep 17 00:00:00 2001
From: cubedro <contact@siteshop.ro>
Date: Wed, 17 Jun 2015 06:37:59 +0300
Subject: [PATCH] added send all stats on socket reconnect

---
 lib/node.js | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/node.js b/lib/node.js
index ad040af..5b4a691 100644
--- a/lib/node.js
+++ b/lib/node.js
@@ -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)
 	{