WIP - settings.prepare refactoring... because.

This commit is contained in:
Julian Lam
2014-03-14 00:34:51 -04:00
parent 6d03f713c5
commit ebe61450a1
3 changed files with 29 additions and 18 deletions

View File

@@ -9,7 +9,9 @@ var meta = require('../meta'),
winston = require('winston'),
server = require('./'),
SocketMeta = {};
SocketMeta = {
rooms: {}
};
SocketMeta.reconnected = function(socket) {
var uid = socket.uid,
@@ -72,8 +74,6 @@ SocketMeta.getUsageStats = function(socket, data, callback) {
/* Rooms */
SocketMeta.rooms = {};
SocketMeta.rooms.enter = function(socket, data) {
if(!data) {
return callback(new Error('invalid data'));