How to track presence for different topic?

In my app I have an admins channel and a users channel. I know how to list the users with Presence.list("users"), but how can I make the admin clients receive presence_diff events for users even if they aren’t connected to the users channel?

2 Likes

In your admin channel:

:ok = MyApp.Endpoint.subscribe("users")
5 Likes