RTCStatsReport API:
data-channel
stats
bytesSent
in 'data-channel' stats
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.