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'; -});