From 3683a6dd3421a7392d728d6dd33ea452380b2154 Mon Sep 17 00:00:00 2001
From: Wu Cheng-Han <jacky_cute0808@hotmail.com>
Date: Sat, 26 Sep 2015 10:24:44 +0800
Subject: [PATCH] Added more infos about connection and disconnection in
 realtime "getStatus"

---
 lib/realtime.js | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lib/realtime.js b/lib/realtime.js
index 7956290..09da1c8 100644
--- a/lib/realtime.js
+++ b/lib/realtime.js
@@ -164,7 +164,11 @@ function getStatus(callback) {
                     notesCount: data.rows[0].count,
                     registeredUsers: regcount,
                     onlineRegisteredUsers: regaddresses.length,
-                    distinctOnlineRegisteredUsers: distinctregaddresses.length
+                    distinctOnlineRegisteredUsers: distinctregaddresses.length,
+					isConnectionBusy: isConnectionBusy,
+					connectionSocketQueueLength: connectionSocketQueue.length,
+					isDisconnectBusy: isDisconnectBusy,
+					disconnectSocketQueueLength: disconnectSocketQueue.length
                 });
         });
     });