X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=server%2Fsockets.js;h=d92778c00e435c6b4ddb76be2ae3190383b4dcab;hp=274d70ad43ec8aa50242aeeb04511df309f748ca;hb=d4036efea5b57656478affd7d71f53dcea0f8017;hpb=b988c726df078aa456bd47709f6eee0f73dc5abd diff --git a/server/sockets.js b/server/sockets.js index 274d70ad..d92778c0 100644 --- a/server/sockets.js +++ b/server/sockets.js @@ -31,6 +31,7 @@ module.exports = function(wss) { wss.on("connection", (socket, req) => { const query = getJsonFromUrl(req.url); const sid = query["sid"]; + // TODO: later, allow duplicate connections (shouldn't be much more complicated) // Ignore duplicate connections (on the same live game that we play): if (!!clients[sid]) return socket.send(JSON.stringify({code:"duplicate"}));