wss behind nginx
This commit is contained in:
parent
49de12b51a
commit
bd0eb1eb66
|
@ -80,8 +80,8 @@ function connect() {
|
|||
console.log()
|
||||
|
||||
if (location.protocol == "https:") {
|
||||
console.log(`Connecting wss://${serverAddress}:${serverPort}`)
|
||||
socket = new WebSocket(`wss://${serverAddress}:${serverPort}`)
|
||||
console.log(`Connecting wss://${serverAddress}:443`)
|
||||
socket = new WebSocket(`wss://${serverAddress}:443`)
|
||||
|
||||
} else {
|
||||
console.log(`Connecting ws://${serverAddress}:${serverPort}`)
|
||||
|
|
Loading…
Reference in New Issue