From f68a8d152f2eb1e09f1432cc6ae26ff1110f2e7d Mon Sep 17 00:00:00 2001 From: sepia Date: Sun, 20 Jul 2025 19:55:23 -0500 Subject: [PATCH] Remove websocket status indicator --- index.html | 1 - public/scripts/display-ws-connection.js | 19 ------------------- 2 files changed, 20 deletions(-) diff --git a/index.html b/index.html index b9406ff..979da4f 100644 --- a/index.html +++ b/index.html @@ -32,7 +32,6 @@ Click to copy game link! -
Disconnected
diff --git a/public/scripts/display-ws-connection.js b/public/scripts/display-ws-connection.js index e3618d2..faf7aab 100644 --- a/public/scripts/display-ws-connection.js +++ b/public/scripts/display-ws-connection.js @@ -18,22 +18,3 @@ gameContainer.setAttribute('ws-connect', wsUrl); // Tell HTMX to connect the WebSocket htmx.trigger(gameContainer, ' and connect'); - -// Update the WebSocket status indicator -const wsStatusDiv = document.getElementById('ws-status'); - -gameContainer.addEventListener('htmx:wsConnecting', function () { - if (wsStatusDiv) wsStatusDiv.textContent = 'Connecting...'; -}); - -gameContainer.addEventListener('htmx:wsOpen', function () { - if (wsStatusDiv) wsStatusDiv.textContent = 'Connected'; -}); - -gameContainer.addEventListener('htmx:wsClose', function () { - if (wsStatusDiv) wsStatusDiv.textContent = 'Disconnected'; -}); - -gameContainer.addEventListener('htmx:wsError', function () { - if (wsStatusDiv) wsStatusDiv.textContent = 'Connection Error'; -});