X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=server%2Fsockets.js;h=d00b3c898c1d5f3ce41edb5740e847c96b04896b;hb=e45c98ec2e15626db02c98997ae9725635715990;hp=25abadb75dabba084cdaef362cb7c7dbce682d0e;hpb=0d5335de5c94d780e03ac0aa3279b731c69455cc;p=vchess.git diff --git a/server/sockets.js b/server/sockets.js index 25abadb7..d00b3c89 100644 --- a/server/sockets.js +++ b/server/sockets.js @@ -209,6 +209,9 @@ module.exports = function(wss) { clients[page][rid][rtmpId].socket, { code: "askfullgame", from: [sid,tmpId] } ); + } else { + // I'm the only person who have the game for the moment: + send(socket, { code: "fullgame", data: { empty: true } }); } } break;