Hi team, as you can see we have added a recent activity below the users name, e.g when they were last logged in cometchat. However this is not updating in real-time, you need to refresh the page to see the new status. Is there any API or guide to do this without doing too many calls to slow the server down?
When a user comes online or goes offline you will be notified via the Users Listeners. You can read more about this here.
So whenever you receive the event of a user coming online or going offline you can update it in the UI. I hope this helps.