From 429cb304a47da368556f23885c30811dafcd1a07 Mon Sep 17 00:00:00 2001 From: Mat Date: Wed, 23 Oct 2024 07:07:42 +0000 Subject: [PATCH] Fix bug with websocket protocol --- src/app/openlp-websocket.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/openlp-websocket.ts b/src/app/openlp-websocket.ts index 1f0b988..ae8f483 100644 --- a/src/app/openlp-websocket.ts +++ b/src/app/openlp-websocket.ts @@ -8,7 +8,7 @@ export function createWebSocket( ): Observable { return new Observable((observer) => { const protocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:'; - const ws = new WebSocket(`${protocol}://${host}:${wsPort}/${endpoint}`); + const ws = new WebSocket(`${protocol}//${host}:${wsPort}/${endpoint}`); ws.onmessage = (e) => { const reader = new FileReader(); reader.onload = () => {