diff --git a/src/socket.io/index.js b/src/socket.io/index.js index 89073218ee..cb913a0f8d 100644 --- a/src/socket.io/index.js +++ b/src/socket.io/index.js @@ -264,35 +264,6 @@ Sockets.getUserSockets = function(uid) { return sockets; }; -Sockets.getUserRooms = function(uid) { - // TODO: - // io.sockets.adapter.rooms is local to this worker - // io.sockets.adapter.sids is local to this worker - // use .clients('uid_' + uid, fn) - // user .roomClients(socketId, fn) - - var rooms = {}; - - if (!io.sockets.adapter.rooms['uid_' + uid]) { - return []; - } - var uidSocketIds = Object.keys(io.sockets.adapter.rooms['uid_' + uid]); - if (!Array.isArray(uidSocketIds)) { - return []; - } - for (var i=0; i