diff --git a/lnbits/extensions/copilot/templates/copilot/compose.html b/lnbits/extensions/copilot/templates/copilot/compose.html index b5bd8950..941838bf 100644 --- a/lnbits/extensions/copilot/templates/copilot/compose.html +++ b/lnbits/extensions/copilot/templates/copilot/compose.html @@ -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) {