MongoDB module

Hi,
First, I would like to ask a question about ejabberd events. When a user disconnects, do I need to explicitly call or does ejabberd send that out automatically? Is there a event hook that fires when a user connects AND disconnects?

Thanks,
Markus

mhoang wrote: Hi, First, I

mhoang wrote:

Hi,
First, I would like to ask a question about ejabberd events. When a user disconnects, do I need to explicitly call
presence type="unavailable"
or does ejabberd send that out automatically?

In ejabberd, I think it is enough if your client closes the TCP connection.

The protocols say that the client should first send presence unavailable, then must send a stream close.
See http://tools.ietf.org/html/draft-ietf-xmpp-3921bis-20#section-4.5.1
and http://tools.ietf.org/html/draft-saintandre-rfc3920bis-09#section-5.7

mhoang wrote:

Is there a event hook that fires when a user connects AND disconnects?

See http://www.ejabberd.im/node/4591

I didn't see the relationship

I didn't see the relationship to Mongo.

Syndicate content