webapp: Fix websocket url
This commit is contained in:
parent
1281893314
commit
f1566eaab7
@ -88,8 +88,8 @@ export default {
|
|||||||
|
|
||||||
const socketProtocol =
|
const socketProtocol =
|
||||||
window.location.protocol === "https:" ? "wss:" : "ws:";
|
window.location.protocol === "https:" ? "wss:" : "ws:";
|
||||||
const port = 80; // window.location.port;
|
const port = window.location.port;
|
||||||
const host = "192.168.20.110"; //window.location.hostname;
|
const host = window.location.hostname;
|
||||||
const webSocketUrl = socketProtocol + "//" + host + ":" + port + "/ws";
|
const webSocketUrl = socketProtocol + "//" + host + ":" + port + "/ws";
|
||||||
|
|
||||||
this.connection = new WebSocket(webSocketUrl);
|
this.connection = new WebSocket(webSocketUrl);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user