Folks -

I'm writing code where I'm trying to 'address' or 'point to' or 'give a name to' a pubsub node.

My code has the notion of a JID (i.e. there is a 'JID' class) and I was wondering if some out there thought that using a JID with a resource identifier as a 'handle' to a pubsub node was an abuse of JIDs, abuse of the PubSub protocol, abuse of the PEP notions, or all/ none of the above.

In other words, assume:

pubsub.localhost/foonode

and then I use that as a handle within my code to identify the 'foonode' within the 'pubsub.localhost' service.

If folks out there are recoiling in horror :-), if someone would point me in the right direction in so far as 'best practices', that'd be great.

I know that XMPP has a notion of xmpp: URIs as well, but it seems to me that they're sorta RESTy, with actions and stuff. Unless I read those specs incorrectly, here's a way to subscribe to a Pubsub node using an xmpp: URI:

xmpp:pubsub.localhost?pubsub;action=subscribe;node=foonode

but I don't see a form that would allow me to 'address' a pubsub node. Would that just be something like:

xmpp:pubsub.localhost/foonode

??

Thanks!

Cheers,

- Bill

Reply via email to