Browse Source

changed server edit

master
Jeffery R 7 years ago
parent
commit
dd9271cbe8
2 changed files with 8 additions and 1 deletions
  1. +7
    -1
      googletrendsgame/server/index.html
  2. +1
    -0
      googletrendsgame/server/server.js

+ 7
- 1
googletrendsgame/server/index.html View File

@ -23,7 +23,13 @@
var tt = new Object();
tt.roomName = "den";
tt.password = "pp";
socket.emit('joinRoom', tt);
socket.emit('createRoom', tt);
});
socket.on('roomUpdate', function(data)
{
console.log("good");
console.log(data);
});

+ 1
- 0
googletrendsgame/server/server.js View File

@ -181,6 +181,7 @@ var room = function(capacityP, pass, owner)
//if room is empty remove the room from rooms list
if(this.users.length == 0)
{
console.log("room scrubbed");
delete rooms[this.roomName];
}

Loading…
Cancel
Save