I am running mediasoup using a node server (clients use mediasoup-client).
Currently, I am able to connect around 1000 peers.
This currently uses a small fraction of the CPU, so I looked at how I can increase the number of connections to the server.
- but this didn’t have any effect.
Then I came across a thread (can’t post another link :/) called
"using multiple consumers in a single recvTransport
where it is mentioned I should reuse a single recv transport for all consumers.
I Tried doing so - instead of creating a new transport for each peer - creating only 1 and handing all following peers this single transport - this didn’t work.
Obviously, tried debugging - but no luck so far. Only error I got was
connect was already called on transport
figured I should call this only once.
I am wondering whether there is something I am missing - if I should create that single transport slightly different, in order to reuse it?
I am seeing (my server implementation is fairly similar to the mediasoup-sandbox demo) that a transport is created with a notion of a peer - in appData property.