From e380f12cd2159fa2aa518a834b3c56ae52cc1ad4 Mon Sep 17 00:00:00 2001 From: bskjon Date: Sun, 23 Feb 2025 04:11:08 +0100 Subject: [PATCH] Adjusted WS url --- apps/ui/web/src/index.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/ui/web/src/index.tsx b/apps/ui/web/src/index.tsx index 01d52770..99dfc942 100644 --- a/apps/ui/web/src/index.tsx +++ b/apps/ui/web/src/index.tsx @@ -10,10 +10,14 @@ import { StompSessionProvider } from 'react-stomp-hooks'; const root = ReactDOM.createRoot( document.getElementById('root') as HTMLElement ); + +const protocol = window.location.protocol; +const host = window.location.host; +const wsUrl = `${protocol}://${host}/ws`; root.render( - { if (str === "Opening Web Socket...") { }