disable stuff that crashes in socket.io 1.x

This commit is contained in:
barisusakli
2014-11-25 15:18:33 -05:00
parent 396dffd60f
commit 4bed05a622
3 changed files with 6 additions and 5 deletions

View File

@@ -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(),