mirror of
https://github.com/tbnobody/OpenDTU.git
synced 2025-12-20 01:01:28 +01:00
Fix websocket proto
This commit is contained in:
@@ -95,7 +95,7 @@ export default defineComponent({
|
||||
console.log("Starting connection to WebSocket Server");
|
||||
|
||||
const { protocol, host } = location;
|
||||
const webSocketUrl = `${protocol === "https" ? "wss" : "ws"
|
||||
const webSocketUrl = `${protocol === "https:" ? "wss" : "ws"
|
||||
}://${host}/livedata`;
|
||||
|
||||
this.socket = new WebSocket(webSocketUrl);
|
||||
|
||||
Reference in New Issue
Block a user