WSS prox konfiguration

This commit is contained in:
ChK
2026-02-01 19:56:01 +01:00
parent 60b1b7591c
commit d2ffb17568
3 changed files with 11 additions and 4 deletions

View File

@@ -11,9 +11,12 @@ function isJson(str) {
return true;
}
var socketUrl = (location.protocol === 'https:' ? 'wss://' : 'ws://') + location.host + '/echo';
var socket = new WebSocket(socketUrl);
//var socket = new WebSocket(String(document.location).replace("https://","wss://").replace("1003","2095").replace("index.html","") + "echo");
//var socket = new WebSocket("wss://robot-ws.daniel-freund.de/echo");
var socket = new WebSocket("wss://thinkcentre.local:2095/echo");
//var socket = new WebSocket("wss://thinkcentre.local:2095/echo");
socket.onopen = () => console.log('Connected') || setInterval(() => { lastPingRequest = Date.now();
socket.send("Ping");
}, 5000);