Network Statistics
Main Walkthrough 25 of 25
Clients can inspect the amount of data transferred over the network.
Note: Network statistics are currently available only with the TCP transport, not WebSocket transports.
Getting Statistics
getNetworkStatistics returns the current statistics.
const statistics = await client.getNetworkStatistics();