Home
MatriX vNext
MatriX XMPP SDK ▼
Forum
About us ▼
Contact
Not logged in.
·
Lost password
·
Register
Forum
Search
Members
Forum:
MatriX and XmppDotNet
Get list of Node Subscribers
Karthik
2012-09-05, 23:31
#1
Member since Aug 2012 ·
5
posts
Group memberships:
Members
Show profile
·
Link to this post
Subject:
Get list of Node Subscribers
Is there a way to get a listing of current subscribers (in JID format) to a particular pubsub node on the XMPP server, using the Matrix library?
Alex
2012-09-06, 08:41
#2
Member since Feb 2003 ·
4449
posts · Location: Germany
Group memberships:
Administrators, Members
Show profile
·
Link to this post
this is described here:
http://xmpp.org/extensions/xep-0060.html#owner-subscriptio…
you can build the request packet with the following code:
public
Iq RequestSubscriptionsListStanza
(
Jid to,
string
node
)
{
return
new
PubSubOwnerIq
{
Type
=
IqType
.
get
,
To
=
to,
PubSub
=
{
Subscriptions
=
new
PubSub
.
Owner
.
Subscriptions
{
Node
=
node
}
}
,
}
;
}
I have added a function for this to the PubsubManager. It will be available when I upload the next binary release.
Alex
Karthik
2012-09-07, 00:19
#3
Member since Aug 2012 ·
5
posts
Group memberships:
Members
Show profile
·
Link to this post
Thank you, I managed to hack a solution based on your sample code to send an iq stanza requesting node subscriptions, and an iq event handler to parse the response from the server.
Alex
2012-09-07, 07:22
#4
Member since Feb 2003 ·
4449
posts · Location: Germany
Group memberships:
Administrators, Members
Show profile
·
Link to this post
Great, new dll with a function for this is uploaded
Close
Smaller –
Larger +
Reply to this post:
Verification code:
Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys:
Special characters:
Forum:
MatriX and XmppDotNet