secure wss
This commit is contained in:
@@ -62,7 +62,11 @@
|
|||||||
|
|
||||||
console.log('Starting connection to WebSocket Server')
|
console.log('Starting connection to WebSocket Server')
|
||||||
this.connection = new WebSocket(
|
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) {
|
this.connection.onmessage = function (event) {
|
||||||
|
|||||||
Reference in New Issue
Block a user