Fix websocket connection for port 80
port 80 was interpretet as <IP>:/ws before. Certain browser did not like the colon...
This commit is contained in:
parent
460c99e683
commit
56289af867
@ -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