From cda1baf7c02e7a2815712eea0aef2a1c26f226ec Mon Sep 17 00:00:00 2001 From: s8613 Date: Sun, 29 Jun 2025 21:52:32 +0200 Subject: [PATCH] socket.io fix --- project/frontend/src/socket.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/project/frontend/src/socket.ts b/project/frontend/src/socket.ts index 563ef27..3543cb8 100644 --- a/project/frontend/src/socket.ts +++ b/project/frontend/src/socket.ts @@ -4,4 +4,6 @@ import { API_HOST } from "./util/api"; // "undefined" means the URL will be computed from the `window.location` object // const URL = process.env.NODE_ENV === 'production' ? undefined : 'http://localhost:4000'; -export const socket = io(`${API_HOST}`); +export const socket = io(`${API_HOST}`, { + path: `${API_HOST}/socket.io`, +});