Does ejabberd have a module for persisting online/offline status for users to a database? [closed]

StackOverflow https://stackoverflow.com/questions/9033791

Question

I would like to have a database store of user statuses, as they come online/offline/afk. Can ejabberd store status changes to a database?

Was it helpful?

Solution

This feature is not provided as a default in ejabberd, because it does not scale out of the box. This is the reason ejabberd has kept a very low latency and improve the real time nature of XMPP.

OTHER TIPS

It doesn't appear that ejabberd comes with this functionality baked in, but it's possible to achieve something close enough, several different ways - I believe the standard method is to create a component.

Ejabberd is maintaining the presence status of users internally. Its the main feature of the XMPP protocol as the name suggests Presence protocol. To store it on the database and than handle it means delay in request/response and it will not be the real-time operation.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top