mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-20 15:30:39 +01:00
disable stuff that crashes in socket.io 1.x
This commit is contained in:
@@ -285,7 +285,7 @@ Sockets.uidInRoom = function(uid, room) {
|
||||
};
|
||||
|
||||
Sockets.getSocketCount = function() {
|
||||
return false;
|
||||
return 0;
|
||||
|
||||
var clients = io.sockets.manager.rooms[''];
|
||||
return Array.isArray(clients) ? clients.length : 0;
|
||||
|
||||
Reference in New Issue
Block a user