mirror of
https://github.com/mii443/libdatachannel.git
synced 2025-08-22 15:15:28 +00:00
Added onOpen callback to test
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user