Add status to game-wide emission.
This commit is contained in:
parent
05ec403ad1
commit
51db315e35
1 changed files with 1 additions and 0 deletions
|
|
@ -62,6 +62,7 @@ export default (io: Server, socket: Socket, data: JoinGame) => {
|
|||
|
||||
socket.emit(`GameJoined`, {});
|
||||
socket.to(game.id).emit(`PlayerUpdate`, {
|
||||
status: 200,
|
||||
action: "new",
|
||||
name: player.name,
|
||||
players: game.playerData,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue