Looking to properly dispose of transports, producers, consumers and that over the pipe-transport but not the connection of the pipe.
When I get a signal to close “producer” I loop through my map of the producers and the router’s map and delete the IDs. I then loop through my map of transports and the routers map and close then delete IDs. Beyond this, everything is working great unless there’s a better way?
Beyond that though I’m noticing when I log my Worker’s Router, I notice under _channel._events it’s not clearing and it’s stacking up.
Is there something I’m missing,
- Delete our references of any transport/producers/consumers
- Close (if not possible delete its mapped ID from Worker’s Router)