From 4682fd678c60803e0f279349abd9fdc000c71cd7 Mon Sep 17 00:00:00 2001 From: Ben Arc Date: Wed, 14 Apr 2021 09:32:51 +0100 Subject: [PATCH] secure wss --- lnbits/extensions/copilot/templates/copilot/compose.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) {