removed debug

v1.18.x
barisusakli 11 years ago
parent 298f14ad27
commit c40355b816

@ -388,18 +388,6 @@ function emitOnlineUserCount(callback) {
} }
} }
Sockets.debug = function(callback) {
var uids = [];
//var clients = io.sockets.clients('uid_1');
var clients = io.sockets.clients('/');
for(var i=0; i<clients.length; ++i) {
if (clients[i].uid !== 0 && uids.indexOf(clients[i].uid) === -1) {
uids.push(clients[i].uid);
}
}
callback(null, uids);
}
/* Exporting */ /* Exporting */

@ -280,10 +280,6 @@ SocketUser.getActiveUsers = function(socket, data, callback) {
module.parent.exports.emitOnlineUserCount(callback); module.parent.exports.emitOnlineUserCount(callback);
}; };
SocketUser.debug = function(socket, data, callback) {
module.parent.exports.debug(callback);
};
SocketUser.loadMore = function(socket, data, callback) { SocketUser.loadMore = function(socket, data, callback) {
if(!data || !data.set || parseInt(data.after, 10) < 0) { if(!data || !data.set || parseInt(data.after, 10) < 0) {
return callback(new Error('[[error:invalid-data]]')); return callback(new Error('[[error:invalid-data]]'));

Loading…
Cancel
Save