Controller is up

This commit is contained in:
Kasper Rynning-Tønnesen
2015-06-04 13:28:11 +02:00
parent aa5cb94b29
commit b4d4e6f36f
5 changed files with 230 additions and 6 deletions

View File

@@ -114,7 +114,7 @@ io.on('connection', function(socket){
});
});
socket.on('guid', function(arr)
socket.on('id', function(arr)
{
io.sockets.emit(arr[0], [arr[1], arr[2]]);
});
@@ -128,7 +128,7 @@ io.on('connection', function(socket){
coll = list[0].toLowerCase();
//guid = list[1];
socket.emit("guid", socket.id);
socket.emit("id", rndName(socket.id).substring(0,8));
//console.log(name + " joined list " + coll);