This website works better with JavaScript.
Home
Explore
Help
Sign In
jrtechs
/
jrtechs-GoogleTrendsGame
mirror of
https://github.com/jrtechs/GoogleTrendsGame.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
changed server edit
master
Jeffery R
7 years ago
parent
83c0c6f0ef
commit
dd9271cbe8
2 changed files
with
8 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+7
-1
googletrendsgame/server/index.html
+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
]
;
}
Write
Preview
Loading…
Cancel
Save