Prevents silent WebSocket disconnections via Web Worker heartbeats and reconnection strategies.
90
90%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Passed
No known issues
worker: true in browser environments is FATAL. Agents MUST instantiate the Supabase client with realtime: { worker: true }. Without this flag, browser tab backgrounding throttles the WebSocket and causes silent disconnections that are unrecoverable without a full page reload.worker: true on every Supabase client used in a browser environment.worker: true in non-browser environments (Node.js, Deno Edge Functions) where Web Workers are unavailable.