Constructors
constructor
- new RttEstimator(opts?: Partial<Parameters>): RttEstimator
Parameters
- opts: Partial<Parameters> = {}
Accessors
rto
- get rto(): number
Returns number
sRtt
- get sRtt(): number
Returns number
Methods
backoff
- backoff(): void
Returns void
push
- push(rtt: number, nPending?: number): void
Parameters
- rtt: number
- nPending: number = 1
Returns void
RTT estimator.
See
https://datatracker.ietf.org/doc/html/rfc6298
While the algorithm is agnostic to time units, the default parameters assume milliseconds, following JavaScript convention.