From 32d56475e2516ac3600babbefc34ab7500fcd99b Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Thu, 22 Oct 2020 23:30:35 -0600 Subject: [PATCH] Make sure to send event to host as well. --- src/events/StartGame.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/events/StartGame.ts b/src/events/StartGame.ts index b92cc66..296d071 100644 --- a/src/events/StartGame.ts +++ b/src/events/StartGame.ts @@ -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) {