From 4b35db629180d3a6278137463beb448e8cfac226 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Fri, 28 Oct 2022 14:51:22 +0000 Subject: [PATCH] wss --- apps/ui/src/lib/store.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/ui/src/lib/store.ts b/apps/ui/src/lib/store.ts index 88fd87fc9..e586e968b 100644 --- a/apps/ui/src/lib/store.ts +++ b/apps/ui/src/lib/store.ts @@ -172,7 +172,7 @@ export const state = writable({ export const connect = () => { const token = Cookies.get('token') if (token) { - let url = `ws://${window.location.hostname}/realtime` + let url = `wss://${window.location.hostname}/realtime` if (dev) { url = "ws://localhost:3001/realtime" }