8 #include <pajlada/signals/signal.hpp> 22 bool confirmed{
false};
25 class PubSubClient :
public std::enable_shared_from_this<PubSubClient>
34 static constexpr std::vector<QString>::size_type MAX_LISTENS = 50;
42 void close(
const std::string &reason,
43 websocketpp::close::status::value code =
44 websocketpp::close::status::normal);
54 bool isListeningToTopic(
const QString &
topic);
56 std::vector<Listener> getListeners()
const;
60 bool send(
const char *payload);
64 uint16_t numListens_ = 0;
66 std::vector<Listener> listeners_;
68 std::atomic<bool> awaitingPong_{
false};
69 std::atomic<bool> started_{
false};
websocketpp::client< chatterinoconfig > WebsocketClient
Definition: PubSubWebsocket.hpp:28
websocketpp::connection_hdl WebsocketHandle
Definition: PubSubWebsocket.hpp:29
Definition: PubSubClient.hpp:25
Definition: Application.cpp:48
Definition: PubSubClient.hpp:28
bool authed
Definition: PubSubClient.hpp:17
Definition: PubSubClient.hpp:15
QString topic
Definition: PubSubClient.hpp:16
Options to change the behaviour of the underlying websocket clients.
Definition: PubSubClientOptions.hpp:10
QString nonce
Definition: PubSubClient.hpp:30
Definition: Listen.hpp:10
std::vector< QString > topics
Definition: PubSubClient.hpp:29
bool persistent
Definition: PubSubClient.hpp:18
Definition: PubSubClient.hpp:21