Realtime not working

Hey there. I want to update my list of events when a user has made an update to it. Realtime seems to be the correct option for that but it's not working for me.

I used the docs as an example and edited some of the variables.
https://supabase.com/docs/reference/javascript/next/subscribe#listening-to-a-specific-table

supabase
    .channel("public:events")
    .on("postgres_changes", { event: "*", schema: "public", table: "events" }, (payload: any) => {
        console.log("Change in events", payload);
    })
    .subscribe();


When I make a change nothing seems to be popping up in the console.

Environment:
  • React v18.2.0
  • Supabase-js v2.0.0-rc.6
Was this page helpful?