Update WebSocketManager.ts

This commit is contained in:
Dariusz L
2026-05-01 20:34:51 +02:00
parent abbc78c1d0
commit eae1c2d2c3

View File

@@ -168,5 +168,6 @@ class WebSocketManager {
}
}
const wsUrl = `ws://${window.location.host}/layerforge/canvas_ws`;
const protocol = location.protocol === "https:" ? "wss:" : "ws:";
const wsUrl = `${protocol}//${location.host}/layerforge/canvas_ws`;
export const webSocketManager = new WebSocketManager(wsUrl);