From 56289af8676a0f9cf2695ac413c90a0432444e45 Mon Sep 17 00:00:00 2001 From: Sean Engelhardt Date: Wed, 20 Mar 2019 14:44:35 +0100 Subject: [PATCH] Fix websocket connection for port 80 port 80 was interpretet as :/ws before. Certain browser did not like the colon... --- client/src/app/core/core-services/websocket.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/app/core/core-services/websocket.service.ts b/client/src/app/core/core-services/websocket.service.ts index ba986f7a4..224d8f855 100644 --- a/client/src/app/core/core-services/websocket.service.ts +++ b/client/src/app/core/core-services/websocket.service.ts @@ -138,7 +138,7 @@ export class WebsocketService { // Create the websocket let socketPath = location.protocol === 'https:' ? 'wss://' : 'ws://'; - socketPath += window.location.hostname + ':' + window.location.port + '/ws/'; + socketPath += window.location.host + '/ws/'; socketPath += formatQueryParams(queryParams); this.websocket = new WebSocket(socketPath);