mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 06:55:46 +01:00
possible fix to online guest count
using socket io rooms instead of syncing between workers.
This commit is contained in:
@@ -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()
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user