Procházet zdrojové kódy

Added onOpen callback to test

Paul-Louis Ageneau před 6 roky
rodič
revize
c7a1aad494
1 změnil soubory, kde provedl 4 přidání a 1 odebrání
  1. 4 1
      test/main.cpp

+ 4 - 1
test/main.cpp

@@ -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);
 }