Skip to content

Redundant code ? #14

@Ciborg085

Description

@Ciborg085

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions