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
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.http://tools.ietf.org/html/draft-ietf-xmpp-3921bis-20#section-4.5.1 http://tools.ietf.org/html/draft-saintandre-rfc3920bis-09#section-5.7
See
and
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.