Subscribe to the given topic so that the given handler will be executed on events.
Subscribe to the given topic so that the given handler will be executed on events.
,---------. ,------. ,----------. |Publisher| |Broker| |Subscriber| `----+----' `--+---' `----+-----' | | | | | | | | SUBSCRIBE | | | <--------------------- | | | | | SUBSCRIBED or ERROR | | | ---------------------> | | | | | | | | | | | | | | UNSUBSCRIBE | | | <--------------------- | | | | | UNSUBSCRIBED or ERROR| | | ---------------------> ,----+----. ,--+---. ,----+-----. |Publisher| |Broker| |Subscriber| `---------' `------' `----------'
is the topic the subscriber wants to subscribe to
is the handler executed on events
the (future of) subscription
Unsubscribe from the given topic
Unsubscribe from the given topic
is the topic to unsubscribe from
a (future of) unsubscribed
Subscriber is a client that subscribes to topics and expects to receive events