getStatsAsync

The getStats() method of the WebTransport interface asynchronously returns an object containing HTTP/3 connection statistics.

MDN Reference