On 10/27/11 3:09 PM, Dave Cridland wrote:
> 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.

Right, I neglected to describe the magic because it's all in RFC 6121
for anyone to read.

/psa


Reply via email to