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`, });