Fix websocket proto

This commit is contained in:
Axel Hinrichs 2022-06-30 11:54:20 +02:00
parent e9e5c715f5
commit 04cb1b2654

View File

@ -95,7 +95,7 @@ export default defineComponent({
console.log("Starting connection to WebSocket Server"); console.log("Starting connection to WebSocket Server");
const { protocol, host } = location; const { protocol, host } = location;
const webSocketUrl = `${protocol === "https" ? "wss" : "ws" const webSocketUrl = `${protocol === "https:" ? "wss" : "ws"
}://${host}/livedata`; }://${host}/livedata`;
this.socket = new WebSocket(webSocketUrl); this.socket = new WebSocket(webSocketUrl);