tailchat-meeting icon indicating copy to clipboard operation
tailchat-meeting copied to clipboard

Redundant code ?

Open Ciborg085 opened this issue 1 year ago • 0 comments

I was looking through your project because i am making a similar app myself, and i realized that when you are creating a worker (inside runMediasoupWorkers()) you allocated a map for multiple things inside the appdata of the worker (inside the mediasoup.observer.on('newworker') event handler): like routers, transports, producers,consumers, dataproducers and dataconsumers, but you only seem to be using the routers object to store routers and inside thos routers the transports, you don't seem to be storing transports inside the workers. It seems like it's redundent code. Am i correct in this analysis or is there a purpose to this code. Or maybe it's just old code and that's fine as well, don't seem to be hurting anything.

Ciborg085 avatar Mar 30 '25 18:03 Ciborg085