Invitations changes.
Now require confirmation from both side to start game.
This commit is contained in:
@@ -107,6 +107,7 @@ async function clientAnnounceListener(this: WebSocket, data: string)
|
||||
console.log("catch /game/gameserver/validate: ", error);
|
||||
this.send(JSON.stringify( new ev.EventError("validate token error") ));
|
||||
clientTerminate(clientsMap.get(this.id));
|
||||
return;
|
||||
});
|
||||
|
||||
player.matchOptions = announce.matchOptions;
|
||||
@@ -350,6 +351,7 @@ async function playerReadyConfirmationListener(this: WebSocket, data: string)
|
||||
client.gameSession = null;
|
||||
clientTerminate(client);
|
||||
});
|
||||
return;
|
||||
});
|
||||
|
||||
gameSession.playersMap.forEach( (client) => {
|
||||
|
||||
Reference in New Issue
Block a user