Merge pull request #4520 from tsiegleauq/websocket-fixes

Fix websocket connection for port 80
This commit is contained in:
Emanuel Schütze 2019-03-20 15:08:01 +01:00 committed by GitHub
commit 63a2c6b05b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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