Chat Unreal v3
Chat Unreal
Chat
Unreal
Home
/
Chat
/
Unreal
/
Channels
Updating channel metacounter is the same as creating channel metacounter. Values of existing keys will be updated and values of new keys will be added.
Updating channel metacounter is the same as creating channel metacounter. Values of existing keys will be updated and values of new keys will be added.
std::map<std::wstring, int64_t> metaCounters; metaCounters[L"key1"] = 3; // Update 1 to 3 metaCounters[L"key2"] = 4; // Update 2 to 4 metaCounters[L"key3"] = 0; // Add a new key-value item. channel->UpdateMetaCounters(metaCounters, [](const std::map<std::wstring, int64_t>& metaCounters, SBDError* error) { if (error != nullptr) { // Handle error. return; } });