Make sure to send event to host as well.
This commit is contained in:
parent
647bdde1f1
commit
32d56475e2
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ export const StartGame = (io: Server, socket: Socket, data: StartGame) => {
|
|||
// Start the game
|
||||
game.start()
|
||||
|
||||
socket.to(game.code).emit(`Starting`, {
|
||||
io.to(game.code).emit(`Starting`, {
|
||||
success: true,
|
||||
});
|
||||
} catch (err) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue