fixed wss vs ws choice
This commit is contained in:
@@ -182,7 +182,7 @@ console.log("Echo mock frontend loaded");
|
|||||||
|
|
||||||
async function connectWebSocket() {
|
async function connectWebSocket() {
|
||||||
// supporting ws for local testing.
|
// 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 +
|
var wsURL = schema + window.location.host +
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user