refactor: move Twitch PubSub to use liveupdates (#6638)
Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
@@ -14,7 +14,7 @@ namespace chatterino::seventv::eventapi {
|
||||
|
||||
Client::Client(SeventvEventAPI &manager,
|
||||
std::chrono::milliseconds heartbeatInterval)
|
||||
: BasicPubSubClient<Subscription>(100)
|
||||
: BasicPubSubClient(100)
|
||||
, lastHeartbeat_(std::chrono::steady_clock::now())
|
||||
, heartbeatInterval_(heartbeatInterval)
|
||||
, manager_(manager)
|
||||
@@ -23,7 +23,7 @@ Client::Client(SeventvEventAPI &manager,
|
||||
|
||||
void Client::onOpen()
|
||||
{
|
||||
BasicPubSubClient<Subscription>::onOpen();
|
||||
BasicPubSubClient::onOpen();
|
||||
this->lastHeartbeat_.store(std::chrono::steady_clock::now(),
|
||||
std::memory_order::relaxed);
|
||||
}
|
||||
|
||||
@@ -18,8 +18,8 @@ struct Dispatch;
|
||||
struct CosmeticCreateDispatch;
|
||||
struct EntitlementCreateDeleteDispatch;
|
||||
|
||||
class Client : public BasicPubSubClient<Subscription>,
|
||||
std::enable_shared_from_this<Client>
|
||||
class Client : public BasicPubSubClient<Subscription, Client>,
|
||||
public std::enable_shared_from_this<Client>
|
||||
{
|
||||
public:
|
||||
Client(SeventvEventAPI &manager,
|
||||
|
||||
Reference in New Issue
Block a user