Skip to content

Commit

Permalink
client ws address
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyzzp committed Jun 11, 2024
1 parent fba076b commit 6fabcd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/lib/signal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export namespace signal {
}
myInfo = info
let protocol = location.protocol == "https:" ? "wss" : "ws"
let url = import.meta.env.PROD ? `${protocol}://${location.hostname}:${location.port || 80}/ws` : "ws://localhost:80/ws"
let url = `${protocol}://${location.hostname}:${location.port || 80}/ws`
console.log("signalServer", url)
ws = new WebSocket(url)
ws.onclose = () => {
Expand Down

0 comments on commit 6fabcd5

Please sign in to comment.