From: Benjamin Auder Date: Fri, 8 Mar 2019 11:24:08 +0000 (+0100) Subject: 'update' X-Git-Url: https://git.auder.net/variants/img/pieces/scripts/doc/html/up.jpg?a=commitdiff_plain;h=4ce15fd970356162aebc8f2774c71e7d99183609;p=vchess.git 'update' --- diff --git a/client/src/views/Game.vue b/client/src/views/Game.vue index e9cf8d4b..f467b3b7 100644 --- a/client/src/views/Game.vue +++ b/client/src/views/Game.vue @@ -1,4 +1,10 @@ diff --git a/server/sockets.js b/server/sockets.js index f3d1928d..e94f623f 100644 --- a/server/sockets.js +++ b/server/sockets.js @@ -107,13 +107,9 @@ module.exports = function(wss) { obj.oppid = sid; //I'm the opponent of my opponent(s) clients[oppId].send(JSON.stringify(obj)); break; - // TODO: moreover, here, game info should be sent (through challenge; not stored here) - // TODO: also other challenge events case "resign": clients[obj.target].send(JSON.stringify({code:"resign"})); break; - // TODO: case "challenge" (get ID) --> send to all, "acceptchallenge" (with ID) --> send to all, "cancelchallenge" --> send to all - // also, "sendgame" (give current game info, if any) --> to new connections, "sendchallenges" (same for challenges) --> to new connections } }); socket.on("close", () => {