mirror of
https://github.com/tbnobody/OpenDTU.git
synced 2025-12-16 23:31:04 +01:00
webapp: Fix websocket url
This commit is contained in:
@@ -88,8 +88,8 @@ export default {
|
||||
|
||||
const socketProtocol =
|
||||
window.location.protocol === "https:" ? "wss:" : "ws:";
|
||||
const port = 80; // window.location.port;
|
||||
const host = "192.168.20.110"; //window.location.hostname;
|
||||
const port = window.location.port;
|
||||
const host = window.location.hostname;
|
||||
const webSocketUrl = socketProtocol + "//" + host + ":" + port + "/ws";
|
||||
|
||||
this.connection = new WebSocket(webSocketUrl);
|
||||
|
||||
Reference in New Issue
Block a user