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

BCD tables only load in the browser

See also