|
|
@ -29,11 +29,10 @@ var cookie = require('cookie'),
|
|
|
|
plugins = require('./plugins'),
|
|
|
|
plugins = require('./plugins'),
|
|
|
|
winston = require('winston');
|
|
|
|
winston = require('winston');
|
|
|
|
|
|
|
|
|
|
|
|
//(function(io) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var users = {},
|
|
|
|
var users = {},
|
|
|
|
userSockets = {},
|
|
|
|
userSockets = {},
|
|
|
|
rooms = {};
|
|
|
|
rooms = {};
|
|
|
|
|
|
|
|
|
|
|
|
module.exports.logoutUser = function(uid) {
|
|
|
|
module.exports.logoutUser = function(uid) {
|
|
|
|
if(userSockets[uid] && userSockets[uid].length) {
|
|
|
|
if(userSockets[uid] && userSockets[uid].length) {
|
|
|
|