Update WebSocket URL to support secure connections

This commit is contained in:
Nicola
2026-06-25 08:45:24 +02:00
parent b13145d0ad
commit bc1cb56186
+1 -1
View File
@@ -370,7 +370,7 @@
<script> <script>
// ---- WebSocket ---- // ---- WebSocket ----
const WS_URL = `ws://${location.host}/ws`; const WS_URL = `${location.protocol === 'https:' ? 'wss:' : 'ws:'}//${location.host}/ws`;
let ws = null; let ws = null;
let currentState = {}; let currentState = {};
let reconnectTimer = null; let reconnectTimer = null;