From d03546c40ceaf79ee8ff599a79fb66962ec5f13f Mon Sep 17 00:00:00 2001 From: Jicheng Lu <103353@smsassist.com> Date: Thu, 17 Jul 2025 18:04:40 -0500 Subject: [PATCH] add slash in websocket --- src/lib/services/realtime-chat-service.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lib/services/realtime-chat-service.js b/src/lib/services/realtime-chat-service.js index 027ff02b..3d3f5e7e 100644 --- a/src/lib/services/realtime-chat-service.js +++ b/src/lib/services/realtime-chat-service.js @@ -132,11 +132,10 @@ function buildWebsocketUrl() { const host = PUBLIC_SERVICE_URL.split('://'); if (PUBLIC_SERVICE_URL.startsWith('https')) { - url = `wss:${host[1]}`; + url = `wss://${host[1]}`; } else if (PUBLIC_SERVICE_URL.startsWith('http')) { - url = `ws:${host[1]}`; + url = `ws://${host[1]}`; } - return url; }