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 () {
|
this.startWebSocket = function () {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
const url = (wsPort === '') ? wsUrl : wsUrl + ':' + wsPort;
|
// const url = (wsPort === '') ? wsUrl : wsUrl + ':' + wsPort;
|
||||||
|
const url = wsUrl;
|
||||||
console.log('Starting socket', url);
|
console.log('Starting socket', url);
|
||||||
const wsCtor = window['MozWebSocket'] ? MozWebSocket : WebSocket;
|
const wsCtor = window['MozWebSocket'] ? MozWebSocket : WebSocket;
|
||||||
this.socket = new wsCtor(url, 'stream');
|
this.socket = new wsCtor(url, 'stream');
|
||||||
|
Loading…
Reference in New Issue
Block a user