Function computeReconnectDelayMs

  • Exponential backoff with jitter in the [0.5x, 1x] band for the given zero-based reconnect attempt — the same shape as core/request-pipeline.ts's resolveRetryDelayMs, reimplemented locally so @honua/sdk-js/realtime does not pull in the HTTP request pipeline's error/type graph for one small helper. Exported so the schedule can be asserted deterministically without driving a fake transport end-to-end.

    Parameters

    Returns number