libmediasoupclient uses async operations via C++ promises, expecting hence to receive all its calls from the same thread. How to provide it it’s your freedom.
onProduce function sign: std::futurestd::string OnProduce()
producerid = listener->onProducer().get();
same with
onProduce function sign: std::string OnProduce()
producerid = listener->onProduce()