Flyby SDK v1.0.2
Loading...
Searching...
No Matches
client.h
1#pragma once
2
5
6namespace flyby {
11 class Client : virtual public Publisher, virtual public Subscriber {
12 public:
13 ~Client() override = default;
14
20 bool is_connected() override = 0;
21
27 static std::shared_ptr<Client> create(const std::string& client_id);
28 };
29} // namespace flyby
A pub/sub client for the message bus.
Definition client.h:11
static std::shared_ptr< Client > create(const std::string &client_id)
Create a new message bus client.
bool is_connected() override=0
Check if the client is connected.
The class used for publishing to the message bus.
Definition publisher.h:40
The class used for subscribing to the message bus.
Definition subscriber.h:46