We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9b9428 commit 41284edCopy full SHA for 41284ed
python/agents/bidi-demo/app/static/js/app.js
@@ -35,7 +35,9 @@ enableAffectiveDialogCheckbox.addEventListener("change", handleRunConfigChange);
35
36
// Build WebSocket URL with RunConfig options as query parameters
37
function getWebSocketUrl() {
38
- const baseUrl = "ws://" + window.location.host + "/ws/" + userId + "/" + sessionId;
+ // Use wss:// for HTTPS pages, ws:// for HTTP (localhost development)
39
+ const wsProtocol = window.location.protocol === "https:" ? "wss:" : "ws:";
40
+ const baseUrl = wsProtocol + "//" + window.location.host + "/ws/" + userId + "/" + sessionId;
41
const params = new URLSearchParams();
42
43
// Add proactivity option if checked
0 commit comments