From df4c8087c4dbdac6497dab5c99dff1f6db571702 Mon Sep 17 00:00:00 2001 From: Jeffery R Date: Sun, 28 Jan 2018 10:03:08 -0500 Subject: [PATCH] stopped using async --- googletrendsgame/server/server.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/googletrendsgame/server/server.js b/googletrendsgame/server/server.js index 15791c5..3f3bef0 100644 --- a/googletrendsgame/server/server.js +++ b/googletrendsgame/server/server.js @@ -122,7 +122,7 @@ var room = function(capacityP, pass, owner) var message = this.generateRoomUpdate(); this.users.forEach(function(u) { - console.log("room update called"); + //console.log("room update called"); u.socket.emit('roomUpdate', message); //console.log(message); }); @@ -135,7 +135,7 @@ var room = function(capacityP, pass, owner) */ this.addUser = function(player) { - console.log("user added"); + //console.log("user added"); //check if room is not full this.users.push(player); player.room = this; @@ -489,7 +489,7 @@ io.on('connection', function(socket) */ socket.on('joinRoom', function(data) { - console.log(p.name + " joined room " + data.name); + console.log(p.name + " joined room " + data.roomName); if(rooms[data.roomName] != null && rooms[data.roomName].canJoin(data.password))