-
Notifications
You must be signed in to change notification settings - Fork 22.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
RTCDataChannelStats - complete property docs
- Loading branch information
1 parent
18840eb
commit d52bb13
Showing
9 changed files
with
231 additions
and
18 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
files/en-us/web/api/rtcdatachannelstats/bytesreceived/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
title: "RTCDataChannelStats: bytesReceived property" | ||
short-title: bytesReceived | ||
slug: Web/API/RTCDataChannelStats/bytesReceived | ||
page-type: web-api-instance-property | ||
browser-compat: api.RTCStatsReport.type_data-channel.bytesReceived | ||
--- | ||
|
||
{{APIRef("WebRTC")}} | ||
|
||
The **`bytesReceived`** property of the {{domxref("RTCDataChannelStats")}} dictionary returns the total number of payload bytes received on the associated {{domxref("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 | ||
|
||
{{Specifications}} | ||
|
||
## Browser compatibility | ||
|
||
{{Compat}} | ||
|
||
## See also | ||
|
||
- {{domxref("RTCDataChannel")}} |
29 changes: 29 additions & 0 deletions
29
files/en-us/web/api/rtcdatachannelstats/bytessent/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
title: "RTCDataChannelStats: bytesSent property" | ||
short-title: bytesSent | ||
slug: Web/API/RTCDataChannelStats/bytesSent | ||
page-type: web-api-instance-property | ||
browser-compat: api.RTCStatsReport.type_data-channel.bytesSent | ||
--- | ||
|
||
{{APIRef("WebRTC")}} | ||
|
||
The **`bytesSent`** property of the {{domxref("RTCDataChannelStats")}} dictionary returns the total number of payload bytes sent on the associated {{domxref("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 | ||
|
||
{{Specifications}} | ||
|
||
## Browser compatibility | ||
|
||
{{Compat}} | ||
|
||
## See also | ||
|
||
- {{domxref("RTCDataChannel")}} |
25 changes: 25 additions & 0 deletions
25
files/en-us/web/api/rtcdatachannelstats/datachannelidentifier/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
title: "RTCDataChannelStats: dataChannelIdentifier property" | ||
short-title: dataChannelIdentifier | ||
slug: Web/API/RTCDataChannelStats/dataChannelIdentifier | ||
page-type: web-api-instance-property | ||
browser-compat: api.RTCStatsReport.type_data-channel.dataChannelIdentifier | ||
--- | ||
|
||
{{APIRef("WebRTC")}} | ||
|
||
The **`dataChannelIdentifier`** property of the {{domxref("RTCDataChannelStats")}} dictionary containing the {{domxref("RTCDataChannel.id", "id")}} of the associated `RTCDataChannel` providing these statistics. | ||
|
||
Using the `dataChannelIdentifier`, you can correlate this statistics object to a particular {{domxref("RTCDataChannel")}}. | ||
|
||
## Value | ||
|
||
A string containing the same value as the {{domxref("RTCDataChannel.id")}} property of the associated data channel. | ||
|
||
## Specifications | ||
|
||
{{Specifications}} | ||
|
||
## Browser compatibility | ||
|
||
{{Compat}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
title: "RTCDataChannelStats: label property" | ||
short-title: label | ||
slug: Web/API/RTCDataChannelStats/label | ||
page-type: web-api-instance-property | ||
browser-compat: api.RTCStatsReport.type_data-channel.label | ||
--- | ||
|
||
{{APIRef("WebRTC")}} | ||
|
||
The **`label`** property of the {{domxref("RTCDataChannelStats")}} dictionary returns the {{domxref("RTCDataChannel.label", "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 {{domxref("RTCDataChannel.label")}} property of the associated data channel. | ||
|
||
## Specifications | ||
|
||
{{Specifications}} | ||
|
||
## Browser compatibility | ||
|
||
{{Compat}} | ||
|
||
## See also | ||
|
||
- {{domxref("RTCDataChannel.label")}} |
23 changes: 23 additions & 0 deletions
23
files/en-us/web/api/rtcdatachannelstats/messagesreceived/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
title: "RTCDataChannelStats: messagesReceived property" | ||
short-title: messagesReceived | ||
slug: Web/API/RTCDataChannelStats/messagesReceived | ||
page-type: web-api-instance-property | ||
browser-compat: api.RTCStatsReport.type_data-channel.messagesReceived | ||
--- | ||
|
||
{{APIRef("WebRTC")}} | ||
|
||
The **`messagesReceived`** property of the {{domxref("RTCDataChannelStats")}} dictionary returns the total number of [`message` events](/en-US/docs/Web/API/RTCDataChannel/message_event) fired for received messages on the associated {{domxref("RTCDataChannel")}}. | ||
|
||
## Value | ||
|
||
A positive integer value indicating the total number of `message` events for inbound data on the associated data channel. | ||
|
||
## Specifications | ||
|
||
{{Specifications}} | ||
|
||
## Browser compatibility | ||
|
||
{{Compat}} |
23 changes: 23 additions & 0 deletions
23
files/en-us/web/api/rtcdatachannelstats/messagessent/index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
title: "RTCDataChannelStats: messagesSent property" | ||
short-title: messagesSent | ||
slug: Web/API/RTCDataChannelStats/messagesSent | ||
page-type: web-api-instance-property | ||
browser-compat: api.RTCStatsReport.type_data-channel.messagesSent | ||
--- | ||
|
||
{{APIRef("WebRTC")}} | ||
|
||
The **`messagesSent`** property of the {{domxref("RTCDataChannelStats")}} dictionary returns the total number of [`message` events](/en-US/docs/Web/API/RTCDataChannel/message_event) fired for sent messages on the associated {{domxref("RTCDataChannel")}}. | ||
|
||
## Value | ||
|
||
A positive integer value indicating the total number of `message` events for outbound data on the the associated data channel. | ||
|
||
## Specifications | ||
|
||
{{Specifications}} | ||
|
||
## Browser compatibility | ||
|
||
{{Compat}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- | ||
title: "RTCDataChannelStats: protocol property" | ||
short-title: protocol | ||
slug: Web/API/RTCDataChannelStats/protocol | ||
page-type: web-api-instance-property | ||
browser-compat: api.RTCStatsReport.type_data-channel.protocol | ||
--- | ||
|
||
{{APIRef("WebRTC")}} | ||
|
||
The **`protocol`** property of the {{domxref("RTCDataChannelStats")}} dictionary returns a string containing the {{domxref("RTCDataChannel.protocol", "protocol")}} of the associated data channel. | ||
|
||
The value is defined by the website or app when it creates the data channel. | ||
|
||
## Value | ||
|
||
A string containing the same value as the {{domxref("RTCDataChannel.protocol")}} property of the associated data channel. | ||
|
||
If no protocol was defined, this will be the empty string (""). | ||
|
||
## Specifications | ||
|
||
{{Specifications}} | ||
|
||
## Browser compatibility | ||
|
||
{{Compat}} | ||
|
||
## See also | ||
|
||
- {{domxref("RTCDataChannel.protocol")}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
title: "RTCDataChannelStats: state property" | ||
short-title: state | ||
slug: Web/API/RTCDataChannelStats/state | ||
page-type: web-api-instance-property | ||
browser-compat: api.RTCStatsReport.type_data-channel.state | ||
--- | ||
|
||
{{APIRef("WebRTC")}} | ||
|
||
The **`state`** property of the `RTCDataChannelStats` dictionary returns a string that indicates the {{domxref("RTCDataChannel.readyState","readyState")}} of the data channel's underlying data connection: `connecting`, `open`, `closing` or `closed`. | ||
|
||
Note that this property is required. | ||
|
||
## Values | ||
|
||
A string containing the same value as the {{domxref("RTCDataChannel.readyState")}} property of the associated data channel. | ||
|
||
## Specifications | ||
|
||
{{Specifications}} | ||
|
||
## Browser compatibility | ||
|
||
{{Compat}} | ||
|
||
## See also | ||
|
||
- {{domxref("RTCDataChannel.readyState")}} |