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

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

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?

有帮助吗?

解决方案

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.

其他提示

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top