Emit event to all clients in game not just writers
This commit is contained in:
parent
db585bb1dc
commit
bf7732de26
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ export default (io: Server, socket: Socket, data: SelectObject) => {
|
|||
|
||||
game.log.debug(`Object has been chosen: ${data.choice}`);
|
||||
game.object = data.choice;
|
||||
io.to(`${game.id}:*:writer`).emit(`ChosenObject`, {
|
||||
io.to(game.id).emit(`ChosenObject`, {
|
||||
status: 200,
|
||||
choice: data.choice,
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue