> Date: Thu, 13 Aug 2009 13:41:07 -0300
> From: [email protected]
> To: [email protected]
> Subject: Re: [PubSub] One question about delay notifications
> 
> > If there are 1000+ users on the server,and everyone has 200+ rosters,all 
> > rosters have avatars and moods,then server handle these things like 
> > that,the network traffic will be very heavy,pubsub event storm? So I want 
> > to find a method to tell server do not send these notifications to me,if I 
> > need to know these,I will send query package to get it.
> 
> Avoiding unnecessary traffic is the main the reason to use two
> separate nodes (data and metadata).
> Note that on the normal case you should only subscribe or advertise
> interest (Entity Caps) in the metadata node. That way you will receive
> lightweight notifications when the avatar is updated and only retrieve
> the data when needed.
> 
> > I just set pubsub options to cancel these notifications like below, and the 
> > server told me success, it's not OK.
> >
> > <iq type="set"
> >    to="m...@fuyootrh"
> >    id="config9">
> >  <pubsub xmlns="http://jabber.org/protocol/pubsub#owner";>
> >    <configure node="urn:xmpp:avatar:data">
> >      <x xmlns="jabber:x:data" type="submit">
> >        <field var="pubsub#send_last_published_item"><value>0</value></field>
> >      </x>
> >    </configure>
> >  </pubsub>
> > </iq>
> 
> I don't know Openfire but, according to the protocol, '0' is not a
> valid value here. Try with 'never' or 'on_sub'.
> Also, as far as I know you need to submit the complete configuration form.

You should do a get form and then set/reset on that field.  It looks like 
'never' is what you want, as that
field is not a boolean.  The server should have sent you an error.

<iq type='get'
    from='[email protected]/elsinore'
    to='pubsub.shakespeare.lit'
    id='config1'>
  <pubsub xmlns='http://jabber.org/protocol/pubsub#owner'>
    <configure node='urn:xmpp:avatar:data'/>
  </pubsub>
</iq>


_________________________________________________________________
Stay on top of things, check email from other accounts!
http://go.microsoft.com/?linkid=9671355

Reply via email to