Quantcast
Channel: Ignite Realtime : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 10742

PubSub - Subscribing to a Collection Node

$
0
0

Morning Ladies & Gents,

 

I've got a small PubSub hierarchy. My intention is to have a client subscribe to a collection node so that it receives any items published to one of its leaf nodes. I've successfully been able to subscribe to a LeafNode, but when I attempt to do the same to a CollectionNode, I don't get any errors but I don't get any items either (the Listener just patiently waits.)

 

Nothing in the XEP-0060 doc suggests I can't do this.

 

The Smackx PubSub document states that the current API only supports LeafNodes (it isn't specific about subscribing or publishing - just says only LeafNodes are supported full stop.) This doesn't appear to be true: this forum describes how to create the hierarchy (which I have done successfully); and I have a recursive method that starts at the root of the tree and prints the name of all the children nodes --- so I have verified that the tree structure is anticipated.

 

The Smackx PubSub documentation is very light about CollectionNodes (and deleting nodes too - I might add.) It appears to be old / out of date (not griping - I appreciate its a community effort, I'm particularly grateful for the APIs at all - its just I have tried to 'RTFA')

 

I've also attempted to listen on a CollectionNode and have a child LeafNode change; as well as more nested ones. I spotted the level property on another post (since misplaced the link), I'm not setting in any configuration form a level property (either all or 1) - so I tried listening in both cases to be sure.

 

I'm grateful for any help you can provide. Thanks in advance,

 

Sam


Viewing all articles
Browse latest Browse all 10742

Trending Articles