On Thu Oct 27 22:06:59 2011, Bala Pitchandi wrote:
So does that mean, a XMPP client implementation MUST add a presence
subscriber to its roster, if it wants to keep track of its
"watchers"?
It's more magical than that.
If I send you a <presence type='subscribe'>, the server adds you to
my roster instantly.
If you respond with a <presence type='subscribed'/>, your server adds
me to your roster, and my server updates your entry in my roster.
At no point do either of us need to directly manip[ulate our rosters
- we'll simply be told about the changes.
In practise, many clients add an entry to the roster prior to asking
for a subscription in order to set the name and group, but it's not
needed.
-- Bala
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Dave Cridland
Sent: Thursday, October 27, 2011 4:39 PM
To: XMPP Standards; Kevin Smith
Subject: Re: [Standards] Subscribers List
On Thu Oct 27 21:35:09 2011, Bala Pitchandi wrote:
> I think you misunderstood my question. A client is not required
to add
> every user who is a presence subscriber to its roster. For
example, I
> might have authorized Romeo to see my presence but not add him to
my
> roster. But later on, I would like to know who all have
authorizations
> to see my presence. Is there a way to do that in XMPP? I don't
believe
> there is.
>
>
I think you've misunderstood what the roster is - it's not a simple
addressbook, the roster is the authority for who is subscribed to
your presence, and who you're subscribed to.
So removing someone from the roster actually removes their
subscription, and accepting a subscription will place them into the
roster if needs be.
Dave.
--
Dave Cridland - mailto:[email protected] -
xmpp:[email protected]
- acap://acap.dave.cridland.net/byowner/user/dwd/bookmarks/
- http://dave.cridland.net/
Infotrope Polymer - ACAP, IMAP, ESMTP, and Lemonade
--
Dave Cridland - mailto:[email protected] - xmpp:[email protected]
- acap://acap.dave.cridland.net/byowner/user/dwd/bookmarks/
- http://dave.cridland.net/
Infotrope Polymer - ACAP, IMAP, ESMTP, and Lemonade