Merge pull request #4 from ahinrichs/pr-fix-wsproto

Fix websocket proto
This commit is contained in:
tbnobody 2022-06-30 18:34:47 +02:00 committed by GitHub
commit 642b6d68b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);