Chatterino
Public Member Functions | Protected Member Functions | Friends | List of all members
chatterino::SeventvEventAPIClient Class Reference

#include <SeventvEventAPIClient.hpp>

Inheritance diagram for chatterino::SeventvEventAPIClient:
[legend]
Collaboration diagram for chatterino::SeventvEventAPIClient:
[legend]

Public Member Functions

 SeventvEventAPIClient (liveupdates::WebsocketClient &websocketClient, liveupdates::WebsocketHandle handle, std::chrono::milliseconds heartbeatInterval)
 
void setHeartbeatInterval (int intervalMs)
 
void handleHeartbeat ()
 
- Public Member Functions inherited from chatterino::BasicPubSubClient< SeventvEventAPISubscription >
 BasicPubSubClient (liveupdates::WebsocketClient &websocketClient, liveupdates::WebsocketHandle handle, size_t maxSubscriptions=100)
 
 BasicPubSubClient (const BasicPubSubClient &)=delete
 
 BasicPubSubClient (const BasicPubSubClient &&)=delete
 
virtual ~BasicPubSubClient ()=default
 
BasicPubSubClientoperator= (const BasicPubSubClient &)=delete
 
BasicPubSubClientoperator= (const BasicPubSubClient &&)=delete
 

Protected Member Functions

void onConnectionEstablished () override
 
- Protected Member Functions inherited from chatterino::BasicPubSubClient< SeventvEventAPISubscription >
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

- Public Attributes inherited from chatterino::BasicPubSubClient< SeventvEventAPISubscription >
const size_t maxSubscriptions
 
- Protected Attributes inherited from chatterino::BasicPubSubClient< SeventvEventAPISubscription >
liveupdates::WebsocketClientwebsocketClient_
 

Constructor & Destructor Documentation

◆ SeventvEventAPIClient()

chatterino::SeventvEventAPIClient::SeventvEventAPIClient ( liveupdates::WebsocketClient websocketClient,
liveupdates::WebsocketHandle  handle,
std::chrono::milliseconds  heartbeatInterval 
)

Member Function Documentation

◆ handleHeartbeat()

void chatterino::SeventvEventAPIClient::handleHeartbeat ( )
Here is the call graph for this function:

◆ onConnectionEstablished()

void chatterino::SeventvEventAPIClient::onConnectionEstablished ( )
overrideprotectedvirtual

◆ setHeartbeatInterval()

void chatterino::SeventvEventAPIClient::setHeartbeatInterval ( int  intervalMs)

Friends And Related Function Documentation

◆ SeventvEventAPI

friend class SeventvEventAPI
friend

The documentation for this class was generated from the following files: