mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 23:15:48 +01:00
disable stuff that crashes in socket.io 1.x
This commit is contained in:
@@ -86,8 +86,9 @@ SocketMeta.rooms.enter = function(socket, data, callback) {
|
||||
};
|
||||
|
||||
SocketMeta.rooms.getAll = function(socket, data, callback) {
|
||||
var rooms = websockets.server.sockets.manager.rooms,
|
||||
socketData = {
|
||||
var rooms = {}; //websockets.server.sockets.manager.rooms; doesnt work in socket.io 1.x
|
||||
|
||||
var socketData = {
|
||||
onlineGuestCount: websockets.getOnlineAnonCount(),
|
||||
onlineRegisteredCount: websockets.getOnlineUserCount(),
|
||||
socketCount: websockets.getSocketCount(),
|
||||
|
||||
Reference in New Issue
Block a user