projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix some typos and forgotten things
[vchess.git]
/
sockets.js
diff --git
a/sockets.js
b/sockets.js
index
962e1d8
..
c130dd7
100644
(file)
--- a/
sockets.js
+++ b/
sockets.js
@@
-62,7
+62,7
@@
module.exports = function(wss) {
break;
case "ping":
if (!!clients[page][obj.oppid])
- socket.send(JSON.stringify({code:"pong"}));
+ socket.send(JSON.stringify({code:"pong"
,gameId:obj.gameId
}));
break;
case "myname":
// Reveal my username to opponent