Update to new communication protocol
This commit is contained in:
@@ -24,11 +24,10 @@ void MessageHandler::HandleMessage(const std::string& message)
|
||||
|
||||
nlohmann::json data = nlohmann::json::parse(message);
|
||||
|
||||
if (data.contains("code"))
|
||||
if (data.contains("timeToLiveSeconds"))
|
||||
{
|
||||
if (data["code"] == 510)
|
||||
if (data["timeToLiveSeconds"] < 60)
|
||||
m_signal.emit();
|
||||
return;
|
||||
}
|
||||
|
||||
auto updateDataSet = data["updateDataSet"];
|
||||
|
||||
Reference in New Issue
Block a user