mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 22:15:48 +01:00
closes #4032
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user