Replies: 2 comments 2 replies
-
Hi, thanks for the suggestion! As I see from the supabase docs their presence feature is per channel, in deepstream is per server, so it's a different concept. I agree that it could be a useful feature to add a However at a server level the current subscriber implementation only keeps track of local sockets (users) who are subscribed, it's not at a cluster level. The cluster only knows if a server has a subscription to the topic or not. So if a server does not have that provider locally (or local providers reject the request), it asks the cluster. I'm not in favour of changing such logic because its a core characteristic, it keeps cluster messages small and reduces the shared state. An equivalent In general the spirit should be to add any new feature as a plugin, thats one of the great selling points of deepstream (at least to me), that you can create a plugin almost for everything. Monitoring messages are a great tool, because everything goes through there. Let me know what you think, best |
Beta Was this translation helpful? Give feedback.
-
Here is a quick sketch of how the plugin can work: |
Beta Was this translation helpful? Give feedback.
-
Hi,
I found the current presence API a bit too "large", as you're listening to everybody or just specific name.
Maybe we could take into consideration of what https://supabase.com/docs/guides/realtime/presence do ? Seems really nice.
Presence could be on a per topic/pattern, just like
Listening
somehow allow.Currently, I can use
Listening
feature to mimic some kind of presence per topic, by just listening to a thread where I'm not pushing anything. But i guess we could do betterBeta Was this translation helpful? Give feedback.
All reactions