util.pubsub API

util.pubsub implements an abstract pubsub service along the lines of XEP-0060.

The module itself exposes a single constructor function, new(), which takes table with configuration and returns a service instance.

Usage

Example usage from a module:

Service methods

The service has bunch of methods:

These mostly correspond to XEP-0060 actions.