From: Benjamin Auder Date: Sun, 18 Nov 2018 12:55:56 +0000 (+0100) Subject: Suggest using Redis when failing to deliver messages X-Git-Url: https://git.auder.net/game/vendor/js/img/cross.svg?a=commitdiff_plain;h=e5caeff0b650d8d9639bffd98ef8a5acc4fb85ac;p=vchess.git Suggest using Redis when failing to deliver messages --- 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;