From bc5bf51c805a210fd2189972543a43e7f5aedc7c Mon Sep 17 00:00:00 2001 From: MichaIng Date: Fri, 12 Nov 2021 20:21:13 +0100 Subject: [PATCH] fix(frontend): soft code port for websocket (#35) --- src/frontend/src/App.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/App.svelte b/src/frontend/src/App.svelte index edfb88aa..4e6c7339 100755 --- a/src/frontend/src/App.svelte +++ b/src/frontend/src/App.svelte @@ -119,7 +119,7 @@ } let proto = window.location.protocol == "https:" ? "wss" : "ws"; socket = new WebSocket( - `${proto}://${window.location.hostname}:8088/ws` + `${proto}://${window.location.hostname}:${window.location.port}/ws` ); socket.onopen = socketOpenListener; socket.onmessage = socketMessageListener;