i'm developing a chat with Smack libraries and Openfire server. I would like to set a user to publisher on my pubsub node. I've searched for the web but i can't find anything.
I've set the pubsub with this configuration:
nodeconfig.setPublishModel(PublishModel.publishers);
I've saw that i can create the affiliation:
Affiliation af = new Affiliation(mypubsub,Affiliation.Type.publisher);
What can i do?