From 6411e2e08c253adefe79716d0bf0dc185b6ee16c Mon Sep 17 00:00:00 2001 From: Jack N Date: Wed, 5 Feb 2025 14:30:15 -0800 Subject: [PATCH] uncomment regular ws urls --- frontend/app/websocket.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/frontend/app/websocket.ts b/frontend/app/websocket.ts index 8624279..254ea06 100644 --- a/frontend/app/websocket.ts +++ b/frontend/app/websocket.ts @@ -81,10 +81,9 @@ export function initWebSocketConnection( // TODO: In the future user's should be shown a list of sources and which // ones are active, and should be able to switch between them const urls: string[] = - // hostname == "localhost" - // ? ["wss://live-vis.bvngee.com", "ws://localhost", "ws://localhost:8000"] - // : ["wss://live-vis.bvngee.com", `wss://${hostname}`]; - ["ws://localhost:8000"]; + hostname == "localhost" + ? ["wss://live-vis.bvngee.com", "ws://localhost", "ws://localhost:8000"] + : ["wss://live-vis.bvngee.com", `wss://${hostname}`]; const tryUrl = () => {