Hi!

I've started with the disco(very) implementation yesterday. There seem
to be two possible ways of implementing disco, and the pubsub
extension at large.

The Pubsub Module is a subclass of DefaultDiscoAwareModule, which
provides three method-stubs to deal with disco:
 - addInfoRequestListeners
 - addServerInfoRequestListeners
 - addItemRequestListeners

The ServerInfoRequest is for server-features. The Pubsub module could
identify the server addtionally as pubsub service. Meaning we have an
additional "identity" and "feature" element (see XEP-0030 3.1[1] and
XEP-0060 5.1[2]).

The InfoRequest returns the disco information for a particular node.
The Pubsub module could be addressable by its own JID inside the
server. "pubsub.vysper.org" or something.

The difference between ServerInfoRequest and InfoRequest is, that the
server has either no "to" JID or no node associated (and the
server-entity matches the to address).

The ItemRequest (for completeness) returns either the associated nodes
(service) or all items (node).

The question thus is, should I "enhance" the server with the pubsub
service, or provide an additional entity within the server? I tend
towards the first option, but I'm not quite sure. What would you
suggest?

Cheers,
Michael

 1: http://xmpp.org/extensions/xep-0030.html#info-basic
 2: http://xmpp.org/extensions/tmp/xep-0060-1.13.html#entity-features

Reply via email to