@ -184,6 +184,7 @@ app.cacheBuster = null;
}, function(err) {
if (err) {
app.alertError(err.message);
return;
}
app.currentRoom = room;
});
@ -52,7 +52,7 @@ SocketMeta.buildTitle = function(socket, text, callback) {
SocketMeta.rooms.enter = function(socket, data, callback) {
if (!socket.uid) {
return callback();
if (!data) {
@ -83,6 +83,7 @@ SocketMeta.rooms.enter = function(socket, data, callback) {
websockets.in(data.enter).emit('event:user_enter', data);
callback();
};
SocketMeta.rooms.getAll = function(socket, data, callback) {