update sample html to use wss in case of https
This commit is contained in:
parent
02de5993e6
commit
d53b7a323a
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue