Return the player data in the object

This commit is contained in:
Oliver Akins 2022-03-12 22:04:19 -06:00
parent 5fb5f5d457
commit 5a9dfbb864
No known key found for this signature in database
GPG key ID: 3C2014AF9457AF99

View file

@ -31,7 +31,7 @@ const data: WebsocketEvent = {
socket.emit(`res:lobby.create`, { socket.emit(`res:lobby.create`, {
status: Status.Success, status: Status.Success,
game_code: game.id, game_code: game.id,
players: [], players: game.players.map(p => p.json()),
}); });
games.set(game); games.set(game);