Try routersForTesting
. It is, of course, a sin from the puritanical point of view, but not a bigger one than was using _routers
.
No, you don’t. Use observer or keep track of routers in some other way. You are not supposed to access private properties that might be changed or removed in any minor mediasoup update without warning.