Securing websockets for https use

This commit is contained in:
2022-10-11 19:28:05 +02:00
parent 138ebfb84d
commit a5ce23472a
5 changed files with 15 additions and 21 deletions

View File

@@ -1,4 +1,4 @@
const ws = new WebSocket("ws://localhost:8989");
const ws = new WebSocket("wss://HOSTNAMEHERE:443");
let downloadname
ws.onopen = () => {