Added onOpen callback to test

This commit is contained in:
Paul-Louis Ageneau
2019-08-31 01:04:02 +02:00
parent 549dca2436
commit c7a1aad494

View File

@ -63,7 +63,10 @@ int main(int argc, char **argv) {
});
auto dc1 = pc1->createDataChannel("test");
dc1->onOpen([dc1]() {
cout << "DataChannel open: " << dc1->label() << endl;
});
this_thread::sleep_for(120s);
this_thread::sleep_for(10s);
}