Add publish-subscribe documentation.