RTCDataChannelStats: label property

The label property of the RTCDataChannelStats dictionary returns the label of the associated data channel.

The value of the label need not be unique, and its meaning is defined by the website or app when it creates the data channel.

Value

A string containing the same value as the RTCDataChannel.label property of the associated data channel.

Specifications

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

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
label 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