From 9002caa5b7574aafc33c44a930d161adb78cf520 Mon Sep 17 00:00:00 2001 From: int2001 Date: Fri, 30 Jan 2026 15:26:06 +0000 Subject: [PATCH] Disable Auto-Websocket --- assets/js/cat.js | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/assets/js/cat.js b/assets/js/cat.js index 963987f95..9adfe7249 100644 --- a/assets/js/cat.js +++ b/assets/js/cat.js @@ -1312,20 +1312,6 @@ $(document).ready(function() { // Start standard polling CATInterval = setInterval(updateFromCAT, CAT_CONFIG.POLL_INTERVAL); - // --- PR ADDITION: Auto-enable WebSocket for local CAT URLs --- - // Fetch radio details to check if we should also start WebSocket - $.getJSON(base_url + 'index.php/radio/json/' + selectedRadioId, function(data) { - if (data.cat_url) { - const url = data.cat_url.toLowerCase(); - if (url.includes('127.0.0.1') || url.includes('localhost')) { - console.log("CAT: Local CAT URL detected (" + data.cat_url + "). Initializing WebSocket..."); - websocketIntentionallyClosed = false; - initializeWebSocketConnection(); - } - } - }); - // ------------------------------------------------------------- - if ((window.CAT_COMPACT_MODE === 'ultra-compact' || window.CAT_COMPACT_MODE === 'icon-only') && typeof window.isCatTrackingEnabled !== 'undefined' && !window.isCatTrackingEnabled) { displayOfflineStatus('cat_disabled'); }