diff --git a/www/src/ts/game.ts b/www/src/ts/game.ts index 0419f85..84d45ec 100644 --- a/www/src/ts/game.ts +++ b/www/src/ts/game.ts @@ -31,10 +31,10 @@ function showMessage(text: string): void {
${text}
`); } -/* import.meta.env.VITE_SOCKET_URL || "https://socket-hj1h.onrender.com",*/ +/* */ // Create socket connection -const socket: Socket = io("http://0.0.0.0:3000", { +const socket: Socket = io(import.meta.env.VITE_SOCKET_URL || "https://socket-hj1h.onrender.com", { transports: ["websocket", "polling"], }, );