[ejabberd] Presence status of another entity when user went offline
monkeyfdude at gmail.com
Tue Mar 8 02:47:49 MSK 2016
Thanks. This was definitely one issue which I fixed now.
My original issue was that I was caching presence status on client.
I believe XMPP broadcasts only "available" presence for *existing*
occupants of a room when a new occupant enters room.
Assuming persistent room, if an "available" presence of any occupant is not
received when a user enters room, then it should be
"unavailable" presence is broadcasted to only existing occupants of a room
and is broadcasted only once when the user goes offline.
I hope my understanding is correct.
On Mon, Mar 7, 2016 at 2:55 AM, Holger Weiß <holger at zedat.fu-berlin.de>
> * Gaurav Jain <monkeyfdude at gmail.com> [2016-03-06 18:51]:
> > * I have one group, Group-1
> > * I have two users in the group, User-1 and User-2
> > * Both are connected
> > * Now User-1 goes offline
> > * Then User-2 goes offline.
> > * Then, User-1 goes online.
> > But, when User-1 goes online again, it does not get offline presence of
> > User-2. It gets available/online presence of User-2.
> > What needs to be done to get "unavailable" presence for User-2 when
> > comes back online??
> Maybe User-2 is using stream management, and not cleanly closing the
> stream (with </stream:stream>) when going offline? In that case, the
> server would keep his session open for up to five minutes (by default),
> so that it can be resumed by the client. During that time, User-2 would
> appear as online.
> If you want to change this behavior, search the documentation for
> 'stream_management' and 'resume_timeout':
> ejabberd mailing list
> ejabberd at jabber.ru
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ejabberd