// Minimal service worker for PWA installability only. // This app requires a live WebSocket connection, so offline caching is not useful. // We intentionally do NOT register a `fetch` handler — a pass-through handler // forces every navigation through the SW for no benefit and breaks the // browser's normal HTTP cache + error semantics. self.addEventListener('install', () => { self.skipWaiting(); }); self.addEventListener('activate', (event) => { event.waitUntil(self.clients.claim()); });