diff --git a/server/src/socket/game.socket.ts b/server/src/socket/game.socket.ts index 93a33fe..3e6cb85 100644 --- a/server/src/socket/game.socket.ts +++ b/server/src/socket/game.socket.ts @@ -5,6 +5,8 @@ import type { DisconnectReason, Socket } from "socket.io"; import GameModel, { activeGames } from "../db/models/game.model.js"; import { io } from "../server.js"; +// TODO: clean up + export async function joinLobby(this: Socket, gameCode: string) { const game = activeGames.find((g) => g.code === gameCode); if (!game) return;