secure wss

This commit is contained in:
Ben Arc 2021-04-14 09:32:51 +01:00
parent f5487b2185
commit 4682fd678c

View file

@ -62,7 +62,11 @@
console.log('Starting connection to WebSocket Server')
this.connection = new WebSocket(
'ws://' + document.domain + ':' + location.port + '/ws/{{ copilot.id }}'
'wss://' +
document.domain +
':' +
location.port +
'/ws/{{ copilot.id }}'
)
this.connection.onmessage = function (event) {