File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -251,7 +251,8 @@ export class PeerProxyStepImpl extends PeerProxyStep {
251251export class DynamicProxyStepImpl extends DynamicProxyStep {
252252
253253 async handle ( connection : MockRTCConnection ) {
254- await connection . proxyTrafficToExternalConnection ( ) ;
254+ const externalConn = await connection . proxyTrafficToExternalConnection ( ) ;
255+ this . externalConnections . push ( externalConn ) ;
255256
256257 // This step keeps running indefinitely, until the connection closes
257258 return new Promise < void > ( ( resolve ) => connection . on ( 'connection-closed' , resolve ) ) ;
Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ export class MockRTCConnection extends RTCConnection {
9090 }
9191
9292 await this . proxyTrafficTo ( this . externalConnection ! ) ;
93+ return this . externalConnection ! ;
9394 }
9495
9596 async proxyTrafficTo ( externalConnection : RTCConnection ) {
You can’t perform that action at this time.
0 commit comments