using the host from the document.location
This commit is contained in:
parent
4cf040a866
commit
80179091b6
@ -23,7 +23,8 @@ console.log(document.location);
|
||||
this.startWebSocket = function () {
|
||||
'use strict';
|
||||
|
||||
const url = (wsPort === '') ? wsUrl : wsUrl + ':' + wsPort;
|
||||
// const url = (wsPort === '') ? wsUrl : wsUrl + ':' + wsPort;
|
||||
const url = wsUrl;
|
||||
console.log('Starting socket', url);
|
||||
const wsCtor = window['MozWebSocket'] ? MozWebSocket : WebSocket;
|
||||
this.socket = new wsCtor(url, 'stream');
|
||||
|
Loading…
Reference in New Issue
Block a user