Supabase Realtime: wait ~1s after SUBSCRIBED before asserting events
@jrdeshmukh▲ 0 net votes
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.