Hi, what’s the best way to track the online/offline activity of a subset of users with a Phx?
In my example, I have a product listing page where I know user IDs as they appear with search/pagination now I want to subscribe to whether certain users are online/offline in real-time (I want to show an online indicator for these users).
- All users will connect to the system and their presence need to be tracked
- But for the listing page, unlike a chat lobby, I’m only interested in a subset of users(IDs already known)
This is similar to a social media, where you only see your friend list online, not all users