[jdev] Show values of the Presence Message -> logout

naw lambda512 at gmail.com
Sat Jan 3 06:38:33 CST 2009


El Sábado 03 Enero 2009, jlist9 at gmail.com escribió:
> >> Thanks for your reply. I've added that but it doesn't seem to
> >> solve my problem. What I'm trying to do is to log in with the
> >> same user twice but bind to different resources. And I'd like
> >> any of the two instances notified when the other instance logs out.
> >>
> >> Do I need to explicitly subscribe to the other instances's presence
> >> stanzas?
> >
> > When I'm on "Home" and "Psi" and I disconnect from "Home" I get:
> > <presence from="xxxx at jabberes.org/Home" type="unavailable"
> > to="xxxx at jabberes.org/Psi" />
> >
> > I don't remember to be subscribed explicitly to myself.
>
> Hmm. Maybe the servers don't behave the same way. I was experimenting
> with gtalk...

gtalk behaves in the same way
<presence from="xxxx at gmail.com/HomeCF82D0B9" type="unavailable" 
to="xxxx at gmail.com" />

Did you get the roster (buddy list) from the server? If not, I think that you 
won't receive presence updates.

-- 

Jabber-ID: lambda512 at jabberes.org lambda512 at gmail.com



More information about the JDev mailing list