wss behind nginx

This commit is contained in:
leca 2024-04-11 01:33:51 +03:00
parent 49de12b51a
commit bd0eb1eb66
1 changed files with 2 additions and 2 deletions

View File

@ -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}`)