auto update user counts dont transmit all room data

This commit is contained in:
barisusakli
2014-09-05 00:28:27 -04:00
parent 190647a074
commit 2008bf28ff
3 changed files with 51 additions and 63 deletions

View File

@@ -85,7 +85,7 @@ SocketMeta.rooms.getAll = function(socket, data, callback) {
var userData = {
onlineGuestCount: websockets.getOnlineAnonCount(),
onlineRegisteredCount: websockets.getConnectedClients().length,
rooms: websockets.server.sockets.manager.rooms
socketCount: websockets.getSocketCount()
};
callback(null, userData);