From 14a5de6d9d6651b7870c2ff4619535add9124252 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Fri, 28 Nov 2014 19:08:02 -0500 Subject: [PATCH] not used --- src/socket.io/index.js | 29 ----------------------------- 1 file changed, 29 deletions(-) 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