API: Publish and subscribe (100%)