summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWu Cheng-Han2015-09-26 10:24:44 +0800
committerWu Cheng-Han2015-09-26 10:24:44 +0800
commit3683a6dd3421a7392d728d6dd33ea452380b2154 (patch)
treec2a0357edda6f0850d3c5d3dfa96c4072b81a167
parent5f82df7eb2f37b06684e380fd261b8eb9ea2d50b (diff)
Added more infos about connection and disconnection in realtime "getStatus"
Diffstat (limited to '')
-rw-r--r--lib/realtime.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/realtime.js b/lib/realtime.js
index 79562901..09da1c8c 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
});
});
});