Websocket secure? question mark?

This commit is contained in:
Evert Prants 2019-10-23 16:46:53 +03:00
parent ffd4079a42
commit 68984cd858
Signed by: evert
GPG Key ID: 1688DA83D222D0B5

View File

@ -91,7 +91,7 @@ function handleWebSocket (live) {
if (ws) return if (ws) return
ws = new WebSocket(`ws://${location.host}`) ws = new WebSocket(`ws${location.protocol.indexOf('s') !== -1 ? 's' : ''}://${location.host}`)
ws.onerror = function(e) { ws.onerror = function(e) {
console.error('Socket errored, retrying..', e) console.error('Socket errored, retrying..', e)
handleWebSocket(false) handleWebSocket(false)