From 7da4c51a89f62babbe04d21cae17a3890fb28c71 Mon Sep 17 00:00:00 2001 From: s8613 Date: Wed, 2 Jul 2025 16:05:59 +0200 Subject: [PATCH] fixed socket issue --- project/frontend/src/socket.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/frontend/src/socket.ts b/project/frontend/src/socket.ts index cbba6b5..d8f1720 100644 --- a/project/frontend/src/socket.ts +++ b/project/frontend/src/socket.ts @@ -6,5 +6,5 @@ import { API_HOST } from "./util/api"; const url = new URL(API_HOST); export const socket = io(`${url.host}`, { - path: `${url.pathname.replace(/^\/+/, "")}/socket.io`, + path: `${url.pathname}/socket.io`, });