0
0
Fork 0

Emit event to all clients in game not just writers

This commit is contained in:
Oliver-Akins 2021-01-09 00:17:44 -07:00
parent db585bb1dc
commit bf7732de26

View file

@ -29,7 +29,7 @@ export default (io: Server, socket: Socket, data: SelectObject) => {
game.log.debug(`Object has been chosen: ${data.choice}`); game.log.debug(`Object has been chosen: ${data.choice}`);
game.object = data.choice; game.object = data.choice;
io.to(`${game.id}:*:writer`).emit(`ChosenObject`, { io.to(game.id).emit(`ChosenObject`, {
status: 200, status: 200,
choice: data.choice, choice: data.choice,
}); });