From 1e5a949889f2940dd87189531702432986ccf760 Mon Sep 17 00:00:00 2001 From: TGCFabian <37806580+TGCFabian@users.noreply.github.com> Date: Mon, 5 Feb 2024 22:33:31 +0100 Subject: [PATCH] Fixes WSS Streams in subfolder --- web/js/3las/3las.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/js/3las/3las.js b/web/js/3las/3las.js index 5a38a40..bd062b9 100644 --- a/web/js/3las/3las.js +++ b/web/js/3las/3las.js @@ -72,7 +72,7 @@ var _3LAS = /** @class */ (function () { this.WakeLock.Begin(); try { if (window.location.protocol === 'https:') { - this.WebSocket = new WebSocketClient(this.Logger, 'wss://' + this.Settings.SocketHost + ':' + '/stream' + this.Settings.SocketPath, this.OnSocketError.bind(this), this.OnSocketConnect.bind(this), this.OnSocketDataReady.bind(this), this.OnSocketDisconnect.bind(this)); + this.WebSocket = new WebSocketClient(this.Logger, 'wss://' + this.Settings.SocketHost + ':' + window.location.pathname + '/stream' + this.Settings.SocketPath, this.OnSocketError.bind(this), this.OnSocketConnect.bind(this), this.OnSocketDataReady.bind(this), this.OnSocketDisconnect.bind(this)); } else { this.WebSocket = new WebSocketClient(this.Logger, 'ws://' + this.Settings.SocketHost + ':' + this.Settings.SocketPort.toString() + this.Settings.SocketPath, this.OnSocketError.bind(this), this.OnSocketConnect.bind(this), this.OnSocketDataReady.bind(this), this.OnSocketDisconnect.bind(this));