router.pipeToRouter(): Ensure a single PipeTransport pair is created:
- Since the operation is async, it may happen that two simultaneous
calls to `router1.pipeToRouter({ producerId: xxx, router: router2 })`
would end up generating two pairs of `PipeTranports`. To prevent that,
let's use an async queue.
正在显示
| ... | @@ -46,6 +46,7 @@ | ... | @@ -46,6 +46,7 @@ |
| "testRegex": "test/test.*\\.js" | "testRegex": "test/test.*\\.js" | ||
| }, | }, | ||
| "dependencies": { | "dependencies": { | ||
| "awaitqueue": "^2.0.0", | |||
| "debug": "^4.1.1", | "debug": "^4.1.1", | ||
| "h264-profile-level-id": "^1.0.1", | "h264-profile-level-id": "^1.0.1", | ||
| "netstring": "^0.3.0", | "netstring": "^0.3.0", | ||
| ... | ... |
请
注册
或者
登录
后发表评论