secure wss
This commit is contained in:
parent
f5487b2185
commit
4682fd678c
1 changed files with 5 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue