RTCDataChannelStats: bytesSent property

The bytesSent property of the RTCDataChannelStats dictionary returns the total number of payload bytes sent on the associated RTCDataChannel.

Note that non-payload bytes, such as those for framing and in headers, are not included.

Value

A positive integer value indicating the total number of payload bytes sent on the associated data channel.

Specifications

Specification
Identifiers for WebRTC's Statistics API
# dom-rtcdatachannelstats-bytessent

Browser compatibility

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
bytesSent in 'data-channel' stats

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support

See also