Β© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabaseβ€’4y agoβ€’
6 replies
FunHellion

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();
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
on().subscribe() | Supabase
Parameters
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Realtime not working
SupabaseSSupabase / help-and-questions
4mo ago
Realtime subscriptions not working
SupabaseSSupabase / help-and-questions
8mo ago
Realtime not working properly
SupabaseSSupabase / help-and-questions
4y ago
realtime with v2 not working
SupabaseSSupabase / help-and-questions
4y ago