Merge pull request #4520 from tsiegleauq/websocket-fixes
Fix websocket connection for port 80
This commit is contained in:
commit
63a2c6b05b
@ -138,7 +138,7 @@ export class WebsocketService {
|
|||||||
|
|
||||||
// Create the websocket
|
// Create the websocket
|
||||||
let socketPath = location.protocol === 'https:' ? 'wss://' : 'ws://';
|
let socketPath = location.protocol === 'https:' ? 'wss://' : 'ws://';
|
||||||
socketPath += window.location.hostname + ':' + window.location.port + '/ws/';
|
socketPath += window.location.host + '/ws/';
|
||||||
socketPath += formatQueryParams(queryParams);
|
socketPath += formatQueryParams(queryParams);
|
||||||
|
|
||||||
this.websocket = new WebSocket(socketPath);
|
this.websocket = new WebSocket(socketPath);
|
||||||
|
Loading…
Reference in New Issue
Block a user