X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=server%2Fsockets.js;h=e94f623fc4eee6008fca381e1111469c9372c186;hp=f3d1928db9f73d5ff1ba9fb73be2d05e7f5cf56b;hb=4ce15fd970356162aebc8f2774c71e7d99183609;hpb=2ada153c93cd32deb847707b60b5424aa338803d 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", () => {