From d53b7a323a6b7edce44c324c323abd4995e3152a Mon Sep 17 00:00:00 2001 From: Chris Margach Date: Thu, 10 Apr 2025 13:46:52 +0900 Subject: [PATCH] update sample html to use wss in case of https --- whisperlivekit/web/live_transcription.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/whisperlivekit/web/live_transcription.html b/whisperlivekit/web/live_transcription.html index 50f981a..6c81c72 100644 --- a/whisperlivekit/web/live_transcription.html +++ b/whisperlivekit/web/live_transcription.html @@ -321,7 +321,7 @@ const host = window.location.hostname || "localhost"; const port = window.location.port || "8000"; - const defaultWebSocketUrl = `ws://${host}:${port}/asr`; + const defaultWebSocketUrl = `${window.location.protocol === "https:" ? "wss" : "ws"}://${host}:${port}/asr`; websocketInput.value = defaultWebSocketUrl; websocketUrl = defaultWebSocketUrl;