Pub/sub API reference

Detailed documentation on the pub/sub API