Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
hardboy111 #1
Member since Apr 2007 · 13 posts
Group memberships: Members
Show profile · Link to this post
Subject: set pubsub node subscription options?
Hi All,

I want to be able to set the 'persist-items' attribute to true for a node. But it isnt clear to me from the documentation how I use the PubSubManager to do this?

Does anyone have some example code.

Thanks

Mike
Avatar
hardboy111 #2
Member since Apr 2007 · 13 posts
Group memberships: Members
Show profile · Link to this post
I just tried to use pubsubMgr.RequestSubscriptionOptions() to get back an options form on a node. but I get a error:

  <error type='modify'>
    <bad-request xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/>
    <subid-required xmlns='http://jabber.org/protocol/pubsub#errors'/>
  </error>

Im not sure even if this is the way to set node options but I dont see an option to set a subid in the RequestSubscriptionOptions overloads?

Any ideas?

Mike
Avatar
Alex #3
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
I think what you are looking for is configure a node.
see: http://xmpp.org/extensions/xep-0060.html#owner-configure

There is currently no helper function in PubSubManager for this, but all classes are there. So you can build the request on your own.

Alex
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP RSS