Supabase realtime presence

Hi everyone,

I’m working on implementing a real-time chat workflow in my app, but I’m running into issues with presence states and how they function.

Here’s what I’ve done so far:

  • I have three buttons: Subscribe, Unsubscribe, and Update Presence State Manually. Each triggers a workflow tied to the respective actions.
  • There’s also a workflow triggered on presence updates (join, sync, etc.).

The setup mostly works—subscribing and unsubscribing function as expected. However, the presence update workflow triggers correctly for join and sync, but not when unsubscribing.

Additionally, I noticed that in Supabase’s Realtime Inspector, I don’t see any new events from weweb.

Any ideas why this might be happening or what I might be missing?

Also another issue I am having is multi-table subscription,
Here’s what’s mentionned in supabase doc :

But I can’t find a way to subscribe to several tables in weweb :

I tried using another subscribe block but it seems to delete the previous subscription?
Any solutions ?

Thank you

Hi @Hugo-OC :wave:

I’m having trouble understanding and reproducing your issue to be honest. Perhaps a video walkthrough would help?

Re this: “I tried using another subscribe block but it seems to delete the previous subscription?
Any solutions ?”

Subscribing to another table in another block should not be an issue nor delete the previous subscription to a different table.

Hi Joyce,
Thank you for your answer, of course here’s a video presenting the use case :

PS: Désolé pour mon anglais :sweat_smile:

Hi,

Did you solve this issue? If so, what steps did you take to troubleshoot and what worked (or didn’t work)?

I think I am in the same frustrating state currently: two realtime DB channels subscribed to in the same way but only one works.

RLS policies on Supabase side are simple and identical across both tables.

1 Like

Hi,

No I paused that implementation for now.

@Joyce, any news ?