On 10/19/2011 11:33 PM, Dave Cridland wrote:
> On Wed Oct 19 17:24:21 2011, Sergey Dobrov wrote:
>> On 10/19/2011 11:15 PM, Kevin Smith wrote:
>> > On Wed, Oct 19, 2011 at 5:07 PM, Joe Hildebrand <[email protected]>
>> wrote:
>> >> On 10/19/11 9:25 AM, "Kevin Smith" <[email protected]> wrote:
>> >>
>> >>> The behaviour here is pretty much by design - the PEP defaults are
>> >>> there for mutually shared information (e.g. extended presence)
>> between
>> >>> people with mutual presence subs. If you want a one-sided approach,
>> >>> using manual subscriptions instead of the caps-based magic seems like
>> >>> a better fit.
>> >>
>> >> This reminds me of another idea that we had kicked around.  An
>> explicit
>> >> subscription using a caps hash:
>> >>
>> >> <iq type='set'
>> >>     from='[email protected]/barracks'
>> >>     to=' [email protected]'
>> >>     id='sub1'>
>> >>   <pubsub xmlns='http://jabber.org/protocol/pubsub'>
>> >>     <subscribe node='urn:xmpp:explicit'
>> jid='[email protected]/work'/>
>> >>    <options>
>> >>       <x xmlns='jabber:x:data' type='submit'>
>> >>         <field var='http://jabber.org/protocol/caps'>
>> >>          <value>zHyEOgxTrkpSdGcQKH8EFPLsriY=</value>
>> >>        </field>
>> >>      </x>
>> >>    </options>
>> >>   </pubsub>
>> >> </iq>
>> >>
>> >> This would subscribe francisco to all of the authorized +subscribe
>> features
>> >> pointed to by the hash.
>> >
>> > That seems fine to me.
>> >
>> > /K
>> >
>> When client should send such stanza? After each connect and to each user
>> with the "to" subscription state?
> 
> Indeed, and then you may as well send them presence anyway.
> 
> Dave.
The difference is that presence will be sent by server without client's
participation. And it's good from the point of traffic economy view. As
I can understand, the central target of entity capabilities is to
minimize client's traffic. So we lose two important things at one
moment: inconveniently send that thing by hand and serious increase of
user's traffic.

Other way is to send such stanza by server when client is connected. But
I can't understand what's the difference with presence probe in such
case. I will be glad if you will help me to understand.


-- 
With best regards,
Sergey Dobrov,
XMPP Developer and JRuDevels.org founder.

Reply via email to