Make sure to send event to host as well.

This commit is contained in:
Oliver-Akins 2020-10-22 23:30:35 -06:00
parent 647bdde1f1
commit 32d56475e2

View file

@ -38,7 +38,7 @@ export const StartGame = (io: Server, socket: Socket, data: StartGame) => {
// Start the game // Start the game
game.start() game.start()
socket.to(game.code).emit(`Starting`, { io.to(game.code).emit(`Starting`, {
success: true, success: true,
}); });
} catch (err) { } catch (err) {