This commit is contained in:
barisusakli
2016-01-07 18:07:43 +02:00
parent f91afb5b99
commit a6074da17e
3 changed files with 26 additions and 20 deletions

View File

@@ -199,7 +199,7 @@ Sockets.getSocketCount = function() {
if (!io) {
return 0;
}
return io.sockets.sockets.length;
return Object.keys(io.sockets.sockets).length;
};
Sockets.getUserSocketCount = function(uid) {