Constructors
constructor
- new RttEstimator(opts?): 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, nPending?): 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.