Fix socket.io connection for reverse proxy deployments

Replace deprecated document.domain + port construction with io()
which auto-connects to the serving host regardless of proxy setup.
This commit is contained in:
russell@unturf.com 2026-02-23 19:16:57 -05:00
parent f963cd9443
commit c0ec5ded04

View file

@ -63,7 +63,7 @@
<script>
// Connect to the server using socket.io
const socket = io.connect(window.location.protocol + "//" + document.domain + ":" + location.port);
const socket = io();
</script>
<!-- Link to the favicon -->