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.emit(`GameJoined`, {});
|
||||||
socket.to(game.id).emit(`PlayerUpdate`, {
|
socket.to(game.id).emit(`PlayerUpdate`, {
|
||||||
|
status: 200,
|
||||||
action: "new",
|
action: "new",
|
||||||
name: player.name,
|
name: player.name,
|
||||||
players: game.playerData,
|
players: game.playerData,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue