Websocket secure? question mark?
This commit is contained in:
parent
ffd4079a42
commit
68984cd858
@ -91,7 +91,7 @@ function handleWebSocket (live) {
|
||||
|
||||
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) {
|
||||
console.error('Socket errored, retrying..', e)
|
||||
handleWebSocket(false)
|
||||
|
Reference in New Issue
Block a user