Mediasoup DataConsumer

Hi all. I didn’t quite understand what it is used for in the example GitHub - versatica/mediasoup-demo: mediasoup official demo application DataConsumer. I wanted on this project to expand the ability to use multiple routers via pipeToRouter. I make pipeToRouter of all producers. And everything works fine except for the errors I get in the console. Error logs:


How can you get rid of these errors? Help

That’s simple, you’re sharing the wrong ID when your created the dataconsumer. If the ID in the logs did exist as a dataconsumer, then it’d be you’re lack of awaiting its creation but unlikely as you’d not have that ID till creation occurred so to me it sounds like you never sent the proper ID after creation.