Set default fallback wsport + small fix.

This commit is contained in:
gerlofvanek
2025-03-03 21:22:32 +01:00
parent 3489ebe908
commit 30270d87f1
5 changed files with 20 additions and 19 deletions

View File

@@ -370,7 +370,7 @@ const WebSocketManager = {
wsPort = window.config.port;
}
if (!wsPort) {
wsPort = window.ws_port || '11701';
wsPort = window.ws_port || '11700';
}
console.log("Using WebSocket port:", wsPort);
this.ws = new WebSocket(`ws://${window.location.hostname}:${wsPort}`);