This commit is contained in:
2026-05-09 23:07:09 +02:00
parent dbc468e575
commit 3224a56b4a
+2 -4
View File
@@ -55,8 +55,6 @@ function initLayout() {
}
}
// ─── WebSocket ───────────────────────────────────────────────────────────────
function connectWs() {
const statusEl = document.getElementById("server-status");
statusEl.textContent = "connecting...";
@@ -88,10 +86,10 @@ function connectWs() {
function syncTime() {
wsSend({ action: "get_time", client_time: performance.now() / 1000 });
setInterval(syncTime, 10000);
}
setInterval(syncTime, 10000);
syncTime(); // initial sync
setInterval(syncTime, 500);
}
function wsSend(obj) {