|
Flyby SDK v1.0.2
|
The class used for subscribing to the message bus. More...
#include <subscriber.h>

Public Member Functions | |
| virtual bool | is_connected ()=0 |
| Check if the subscriber is connected. | |
| virtual std::shared_ptr< SubscribeObservable > | subscribe (const std::string &topic)=0 |
| Subscribe to a topic on the message bus. | |
Static Public Member Functions | |
| static std::shared_ptr< Subscriber > | create (const std::string &client_id) |
| Creates a subscriber handler. | |
The class used for subscribing to the message bus.
This class is used only for subscribing to topics.
|
static |
Creates a subscriber handler.
| client_id | - The ID of the user that is subscribing. |
|
pure virtual |
Check if the subscriber is connected.
Implemented in flyby::Client.
|
nodiscardpure virtual |
Subscribe to a topic on the message bus.
| topic | - The topic to subscribe to. |