w3c / webtransport

WebTransport is a web API for flexible data transport
https://w3c.github.io/webtransport/
Other
845 stars 50 forks source link

What are the initial values of the RTT stats? #608

Closed jan-ivar closed 4 months ago

jan-ivar commented 4 months ago

If I call

const wt = new WebTransport(url);
const {smoothedRtt, rttVariation, minRtt} = await wt.getStats();

What values will I get when the connection transitions to "connected"?

Is the RTT calculated from the connection handshake?

vasilvv commented 4 months ago

Yes, generally, a handshake should be sufficient for the initial RTT calculation.

jan-ivar commented 4 months ago

OK in that case I'll close this and make them required in #609.