How to get list subscribers (Users) of pubsub node in swift?

23 views
Skip to first unread message

Baban Jadhav

unread,
Feb 8, 2018, 7:49:04 AM2/8/18
to XMPPFramework
Hi,

        I have created pubsub node using XMPPFRAMEWORK. I want to get a number of subscribers list (Users) from this pubsub node.

I have tried below code. But it gives a list of nodes subscribed by a user.

let host = "YOUR_HOST_NAME"

let serviceJID = XMPPJID(string: "pubsub.\(host)"

let xmppPubSub = XMPPPubSub(serviceJID: serviceJID, dispatchQueue: DispatchQueue.main)

xmppPubSub.addDelegate(self, delegateQueue: DispatchQueue.main)

xmppPubSub.activate(appDelegate.xmppController.xmppStream)

xmppPubSub.retrieveSubscriptions()


But, I want to retrieve the list of subscribers(Users) from the pubsub node.


Thanks!!!
Reply all
Reply to author
Forward
0 new messages