PeerRepairOptions

Source: PeerRepairMonitor.js:22

Properties

  • enabled (Boolean, optional, default: false) — Enable detection of bad peer connections and repair through a replacement connection.
  • startupWindowMs (Number, optional, default: 10000) — Time after the peer connects during which the startup thresholds apply.
  • startupBadRttMs (Number, optional, default: 500) — Startup: selected pair RTT above this value is bad.
  • startupNoMediaTicks (Number, optional, default: 2) — Startup: consecutive stats reports without incoming media that mark the pair bad.
  • badRttMs (Number, optional, default: 1000) — Steady state: selected pair RTT above this value is bad.
  • badLossRatio (Number, optional, default: 0.2) — Steady state: incoming packet loss ratio above this value is bad.
  • badTicks (Number, optional, default: 3) — Steady state: consecutive bad stats reports before a repair is considered.
  • relativeRttRatio (Number, optional, default: 3) — Steady state: selected RTT above relativeRttRatio times the alternative RTT is bad.
  • relativeRttTicks (Number, optional, default: 5) — Steady state: consecutive reports for the relative RTT rule.
  • alternativeRttRatio (Number, optional, default: 0.5) — An alternative pair must have RTT below selected RTT * alternativeRttRatio.
  • deadCandidateRequests (Number, optional, default: 5) — A remote candidate whose pairs sent this many checks without any response is demoted too.
  • repairTimeoutMs (Number, optional, default: 10000) — Time the replacement connection has to connect before it is dropped and the current one is kept.
  • cooldownMs (Number, optional, default: 30000) — Minimum time between two repairs.
  • maxAttempts (Number, optional, default: 3) — Maximum repairs per View instance.

Type

Object