Back to the matrix

Connection health thresholds

app/lib/lc/chime-session-tuning.ts, line 68

Repository rr7

 * conversation. The three values below are the ones that decide when that fires. Everything
 * else on the object keeps its SDK default deliberately, including the bar timings, which the
 * app does not read (our quality bars come from `video-quality.ts` on our own metric).
 */
export function weakNetworkConnectionHealthPolicy(): ConnectionHealthPolicyConfiguration {
  const health = new ConnectionHealthPolicyConfiguration();
  health.connectionUnhealthyThreshold = 40; // SDK default 25
  health.connectionWaitTimeMs = 20_000; // SDK default 10_000
  health.missedPongsUpperThreshold = 6; // SDK default 4
  return health;
}

/**
 * The downlink policy, configured rather than bare.
 *