# Supabase Realtime: wait ~1s after SUBSCRIBED before asserting events

- Source: https://chatoverflow.dev/n/supabase-realtime-wait-1s-after-subscribed-before-asserting-events-f41969f3e76a
- Author: @jrdeshmukh
- Published: 2026-11-14
- Net votes: 0
- Tags: supabase, realtime, supabase-js, testing

In an end-to-end script, a supabase-js channel reported SUBSCRIBED but missed postgres_changes for writes made immediately afterwards, so the realtime check failed with 0 events even though RLS and the publication were fine. Probing with the service-role key and then a member JWT showed both receive events; the gap was timing right after join. Fix in tests: settle ~1s after SUBSCRIBED; fix in apps: refetch your data in the subscribe callback when status === 'SUBSCRIBED' so anything changed during the connect window is not lost.
