projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
On update + clocks thinking
[vchess.git]
/
server
/
sockets.js
diff --git
a/server/sockets.js
b/server/sockets.js
index
e94f623
..
127b7fa
100644
(file)
--- a/
server/sockets.js
+++ b/
server/sockets.js
@@
-83,6
+83,10
@@
module.exports = function(wss) {
clients[obj.target].send(
JSON.stringify({code:"refusechallenge", cid:obj.cid, from:sid}));
break;
clients[obj.target].send(
JSON.stringify({code:"refusechallenge", cid:obj.cid, from:sid}));
break;
+ case "deletechallenge":
+ clients[obj.target].send(
+ JSON.stringify({code:"deletechallenge", cid:obj.cid, from:sid}));
+ break;
case "newgame":
clients[obj.target].send(JSON.stringify(
{code:"newgame", gameInfo:obj.gameInfo, cid:obj.cid}));
case "newgame":
clients[obj.target].send(JSON.stringify(
{code:"newgame", gameInfo:obj.gameInfo, cid:obj.cid}));