Port im Browser-Javascript

This commit is contained in:
chk
2026-03-09 21:49:54 +01:00
parent 2befb519b2
commit d6743f7669
3 changed files with 84 additions and 1 deletions

View File

@@ -121,7 +121,7 @@
let ws;
function connectWS() {
ws = new WebSocket("wss://" + window.location.hostname + ":3000");
ws = new WebSocket("wss://" + window.location.hostname + ":" + window.location.port);
ws.onopen = () => {
console.log("WS connected");