Port im Browser-Javascript
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user