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

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

문제

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