xmpp - XEP-0060 pubsub auto subscribe node to other users Smack -


i implementing pubsub model achieve group chat. things working well. able create node, other users subscribe node, publish item owner or subscriber , item getting subscriber.

now have requirement, owner(user creating node) should able subscribe node roster users , subscribed user start getting item publish. there way achieve this? node creation code below:

configureform form = new configureform(dataform.type.submit); form.setpersistentitems(false); form.setdeliverpayloads(true); form.setaccessmodel(accessmodel.open); form.setpublishmodel(publishmodel.open); setsubscribers(form); leafnode node = (leafnode) manager.createnode(nodename, form); 

as document says possible autosubscribe node, based on access model may roster/presence/open access model.


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

java.lang.NoClassDefFoundError When Creating New Android Project -

Decoding a Python 2 `tempfile` with python-future -