Merge pull request #4 from ahinrichs/pr-fix-wsproto
Fix websocket proto
This commit is contained in:
commit
642b6d68b1
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user