|
Twitch SDK (Internal)
|
#include <pubsubclient.h>
Public Member Functions | |
| virtual void | OnTopicSubscribeStateChanged (PubSubClient *source, const std::string &topic, SubscribeState::Enum state, TTV_ErrorCode ec)=0 |
| virtual void | OnTopicMessageReceived (PubSubClient *source, const std::string &topic, const json::Value &msg)=0 |
| virtual void | OnTopicListenerRemoved (PubSubClient *source, const std::string &topic, TTV_ErrorCode ec)=0 |
|
pure virtual |
Indicates the the listener is no longer going to receive topic events and the reference to the listener is removed. This is independent of topic subscription and there could be other registered topic listeners for the same topic.
Implemented in ttv::PubSubTopicListenerHelper, ttv::chat::ChatUserThreads::PubSubTopicListener, ttv::social::FriendList::PubSubTopicListener, ttv::social::Presence::PubSubTopicListener, and ttv::PubSubComponentBase::PubSubTopicListener.
|
pure virtual |
Received a message on a topic.
Implemented in ttv::PubSubTopicListenerHelper, ttv::chat::ChatUserThreads::PubSubTopicListener, ttv::social::FriendList::PubSubTopicListener, ttv::social::Presence::PubSubTopicListener, and ttv::PubSubComponentBase::PubSubTopicListener.
|
pure virtual |
Indicates changes to the topic subscription state on the socket. After receiving SubscribeState::Subscribed the client should resync all absolute state in order for deltas to properly apply to the local data.
Implemented in ttv::PubSubTopicListenerHelper, ttv::chat::ChatUserThreads::PubSubTopicListener, ttv::social::FriendList::PubSubTopicListener, ttv::social::Presence::PubSubTopicListener, and ttv::PubSubComponentBase::PubSubTopicListener.
1.8.13