define macMessegeSize

This commit is contained in:
Murat Dogan
2021-04-13 15:00:25 +03:00
parent 89c0a7918a
commit e4019ebec8
2 changed files with 8 additions and 7 deletions

View File

@ -121,12 +121,11 @@ size_t benchmark(milliseconds duration) {
}
} catch (const std::exception &e) {
std::cout << "Send failed: " << e.what() << std::endl;
}
// When sent data is buffered in the DataChannel,
// wait for onBufferedAmountLow callback to continue
}
});
// When sent data is buffered in the DataChannel,
// wait for onBufferedAmountLow callback to continue
dc1->onBufferedAmountLow([wdc1 = make_weak_ptr(dc1), &messageData]() {
auto dc1 = wdc1.lock();
if (!dc1)