Hi,
I've been reading up on pubsub and have a question regarding subscriptions.
I'm looking for functionality that allows a user to temporarily subscribe to a
node, perhaps based on presence. For example consider a client that is not
subscribed to any nodes, logs in, subscribes to a node somehow and then logs
out unsubscribing themselves in the process. I've read section 9.1.3 of
XEP-0060 (shown below) which seems to suggest this functionality may be
possible. However I'm not sure it allows subscription to indivdual nodes? It
really just seems like pubsub was not built with the concept of temporary
subscriptions in mind, though I may just be missing something. The other option
I could use would be a chat room which seems to be much more dynamic in terms
of temporary membership. My concern there is the size limitations of the room
which could grow to be quite large. Thanks in advance, any thoughts/ideas are
greatly appreciated.
-Matt
9.1.3 Presence Sharer
If
the node has an open access model, the pubsub service SHOULD also
consider an entity to be temporarily and implicitly subscribed to the
node if the entity sends presence to the account owner in the absence
of a presence subscription. In this case, the subscription SHOULD be
based on the 'from' address of the presence stanza, which will be a
full JID (<[email protected]/resource> or
<domain.tld/resource>). When the service receives unavailable
presence from the full JID, it MUST consider cancel the temporary
subscription.