Chatterino
|
#include <SeventvEventAPIClient.hpp>
Public Member Functions | |
SeventvEventAPIClient (liveupdates::WebsocketClient &websocketClient, liveupdates::WebsocketHandle handle, std::chrono::milliseconds heartbeatInterval) | |
void | setHeartbeatInterval (int intervalMs) |
void | handleHeartbeat () |
![]() | |
BasicPubSubClient (liveupdates::WebsocketClient &websocketClient, liveupdates::WebsocketHandle handle, size_t maxSubscriptions=100) | |
BasicPubSubClient (const BasicPubSubClient &)=delete | |
BasicPubSubClient (const BasicPubSubClient &&)=delete | |
virtual | ~BasicPubSubClient ()=default |
BasicPubSubClient & | operator= (const BasicPubSubClient &)=delete |
BasicPubSubClient & | operator= (const BasicPubSubClient &&)=delete |
Protected Member Functions | |
void | onConnectionEstablished () override |
![]() | |
bool | send (const char *payload) |
bool | subscribe (const SeventvEventAPISubscription &subscription) |
bool | unsubscribe (const SeventvEventAPISubscription &subscription) |
void | close (const std::string &reason, websocketpp::close::status::value code=websocketpp::close::status::normal) |
bool | isStarted () const |
Friends | |
class | SeventvEventAPI |
Additional Inherited Members | |
![]() | |
const size_t | maxSubscriptions |
![]() | |
liveupdates::WebsocketClient & | websocketClient_ |
chatterino::SeventvEventAPIClient::SeventvEventAPIClient | ( | liveupdates::WebsocketClient & | websocketClient, |
liveupdates::WebsocketHandle | handle, | ||
std::chrono::milliseconds | heartbeatInterval | ||
) |
void chatterino::SeventvEventAPIClient::handleHeartbeat | ( | ) |
|
overrideprotectedvirtual |
Reimplemented from chatterino::BasicPubSubClient< SeventvEventAPISubscription >.
void chatterino::SeventvEventAPIClient::setHeartbeatInterval | ( | int | intervalMs | ) |
|
friend |