diff --git a/frontend/src/index.tsx b/frontend/src/index.tsx index c08b296e7..9cb26622f 100644 --- a/frontend/src/index.tsx +++ b/frontend/src/index.tsx @@ -16,6 +16,7 @@ export const URL = import.meta.env.MODE === "production" ? location.origin : "http://localhost:9000"; + export const WS_URL = URL.replace("https", "wss").replace("http", "ws") + "/ws"; export const client = new Client(URL);