feat: Live Emote Updates for 7TV (#4090)
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
@@ -121,27 +121,6 @@ protected:
|
||||
return true;
|
||||
}
|
||||
|
||||
bool isStarted() const
|
||||
{
|
||||
return this->started_.load(std::memory_order_acquire);
|
||||
}
|
||||
|
||||
liveupdates::WebsocketClient &websocketClient_;
|
||||
|
||||
private:
|
||||
void start()
|
||||
{
|
||||
assert(!this->isStarted());
|
||||
this->started_.store(true, std::memory_order_release);
|
||||
this->onConnectionEstablished();
|
||||
}
|
||||
|
||||
void stop()
|
||||
{
|
||||
assert(this->isStarted());
|
||||
this->started_.store(false, std::memory_order_release);
|
||||
}
|
||||
|
||||
void close(const std::string &reason,
|
||||
websocketpp::close::status::value code =
|
||||
websocketpp::close::status::normal)
|
||||
@@ -165,6 +144,27 @@ private:
|
||||
}
|
||||
}
|
||||
|
||||
bool isStarted() const
|
||||
{
|
||||
return this->started_.load(std::memory_order_acquire);
|
||||
}
|
||||
|
||||
liveupdates::WebsocketClient &websocketClient_;
|
||||
|
||||
private:
|
||||
void start()
|
||||
{
|
||||
assert(!this->isStarted());
|
||||
this->started_.store(true, std::memory_order_release);
|
||||
this->onConnectionEstablished();
|
||||
}
|
||||
|
||||
void stop()
|
||||
{
|
||||
assert(this->isStarted());
|
||||
this->started_.store(false, std::memory_order_release);
|
||||
}
|
||||
|
||||
liveupdates::WebsocketHandle handle_;
|
||||
std::unordered_set<Subscription> subscriptions_;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user