MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / ConnectThread

Method ConnectThread

plugins/twitch/event-sub.cpp:88–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86static bool _eventSubSetup = setupEventSubSupport();
87
88void EventSub::ConnectThread()
89{
90 _client->reset();
91 websocketpp::lib::error_code ec;
92 EventSubWSClient::connection_ptr con =
93 _client->get_connection(_url, ec);
94 if (ec) {
95 blog(LOG_INFO, "Twitch EventSub failed: %s",
96 ec.message().c_str());
97 } else {
98 _client->connect(con);
99 _connection = connection_hdl(con);
100 if (_disconnect) {
101 _client->close(con, websocketpp::close::status::normal,
102 "Twitch EventSub stopping", ec);
103 }
104 _client->run();
105 }
106
107 _connected = false;
108}
109
110void EventSub::WaitAndReconnect()
111{

Callers

nothing calls this directly

Calls 4

resetMethod · 0.45
c_strMethod · 0.45
closeMethod · 0.45
runMethod · 0.45

Tested by

no test coverage detected