Supabase broadcast not working in local development
I am using sveltekit and supabase ssr i have a code snippet that proves it is not working.
7 Replies
CLI version 2.39.2
Did you enable publication on that table? What error are you getting?
no error sir, and what table should i target? this is broadcast not postgress changes.
I am following these docs, and as I understand it, there are no tables involved. This creates a channel that can be broadcast via an event.
https://supabase.com/docs/guides/realtime/broadcast
Broadcast | Supabase Docs
Send low-latency messages using the client libs, REST, or your Database.
Should i chain the broadcast with posgress changes?
this one works
You should test with the realtime tab in the dashboard to see if you get the messages you expect. Postgres_changes should not be enabled or used if you are just doing broadcast.
Thanks sir gary for help