Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
Implemented a bug fix to remove the setupWebRTCtcpDetectEvent from th…
Browse files Browse the repository at this point in the history
…e event emitter (#490)
  • Loading branch information
david-macpherson authored Feb 19, 2024
1 parent 4969548 commit fa75e9d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Frontend/library/src/PixelStreaming/PixelStreaming.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,13 @@ export class PixelStreaming {

this._webXrController = new WebXRController(this._webRtcController);

this._setupWebRtcTCPRelayDetection = this._setupWebRtcTCPRelayDetection.bind(this)

// Add event listener for the webRtcConnected event
this._eventEmitter.addEventListener("webRtcConnected", (webRtcConnectedEvent: WebRtcConnectedEvent) => {

// Bind to the stats received event
this._eventEmitter.addEventListener("statsReceived", this._setupWebRtcTCPRelayDetection.bind(this));
this._eventEmitter.addEventListener("statsReceived", this._setupWebRtcTCPRelayDetection);
});
}

Expand Down

0 comments on commit fa75e9d

Please sign in to comment.