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);