From 3e4764474215a34cbe71513ef5221e8ae939dd13 Mon Sep 17 00:00:00 2001 From: Abdulhade Date: Mon, 17 Nov 2025 02:32:28 +0300 Subject: [PATCH] fixed wss vs ws choice --- front_files/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front_files/index.js b/front_files/index.js index 9539842..5663c3b 100644 --- a/front_files/index.js +++ b/front_files/index.js @@ -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 +