fixed wss vs ws choice

This commit is contained in:
2025-11-17 02:32:28 +03:00
parent 29edda05f6
commit 3e47644742

View File

@@ -182,7 +182,7 @@ console.log("Echo mock frontend loaded");
async function connectWebSocket() {
// supporting ws for local testing.
var schema = window.location.protocol === "https" ? "wss://" : "ws://"
var schema = window.location.protocol === "https:" ? "wss:" : "ws:"
var wsURL = schema + window.location.host +