Added more controllers

This commit is contained in:
Kasper Rynning-Tønnesen
2015-06-04 14:32:00 +02:00
parent ff708841db
commit 011e906c47
6 changed files with 57 additions and 12 deletions

View File

@@ -116,7 +116,8 @@ io.on('connection', function(socket){
socket.on('id', function(arr)
{
io.sockets.emit(arr[0], [arr[1], arr[2]]);
if(arr.length == 3)
io.sockets.emit(arr[0], [arr[1], arr[2]]);
});
socket.on('list', function(list)