RTCDataChannelStats: bytesReceived property

The bytesReceived property of the RTCDataChannelStats dictionary returns the total number of payload bytes received 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 received on the associated data channel.

Specifications

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

Browser compatibility

desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
bytesReceived in 'data-channel' stats

See also