possible fix to online guest count

using socket io rooms instead of syncing between workers.
This commit is contained in:
barisusakli
2014-09-09 18:05:21 -04:00
parent e79c980421
commit 20eb4def1d
2 changed files with 44 additions and 44 deletions

View File

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