Realtime connection immediately closes

Hey friends!

I'm attempting to use the "next" version of supabase-js (I'm on 1.36.0-next.29 specifically) to get realtime updates for a specific table. I've enabled realtime on the table, ensured that all replication toggles are on for the supabase_realtime replication, and enabled my table as a source for that replication.

Here's the relevant client code:
    supabase
      .channel('*')
      .on('postgres_changes', { event: '*', schema: 'public', table: 'posts' }, (payload: any) => {
        console.log('Change received!', payload)
      })
      .subscribe()


I'm in a React/TS app. The behavior that I'm seeing is that no updates are logged. When digging into the websocket messages, I see that the client immediately sends messages with events phx_join, access_token, phx_leave. All are acked, including with a phx_close message at the end. It continues to send heartbeats. Did I discover a bug in latest, or am I doing something wrong that causes the client to immediately leave?
Was this page helpful?