X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=sockets.js;h=62d51b70f72386040d63019eb83d82fa0f02ab17;hb=e5caeff0b650d8d9639bffd98ef8a5acc4fb85ac;hp=a1818e09803ab50542f6599d2072b9553d242c98;hpb=cd3174c5a6c2a3f520cc8ff5974701996119dce3;p=vchess.git diff --git a/sockets.js b/sockets.js index a1818e09..62d51b70 100644 --- a/sockets.js +++ b/sockets.js @@ -20,7 +20,7 @@ module.exports = function(wss) { // TODO: when relaying to opponent, check readyState, potential setTimeout()? + send opponent (re)disconnect // (resign, newgame, newmove). See https://github.com/websockets/ws/blob/master/lib/websocket.js around line 313 - // TODO: awaiting newmove, resign, newgame :: in memory structure + // TODO: awaiting newmove, resign, newgame :: in memory structure (use Redis ?) wss.on("connection", (socket, req) => { //const params = new URL("http://localhost" + req.url).searchParams;