Back to Content

RTCDataChannelStats: messagesReceived property

files/en-us/web/api/rtcdatachannelstats/messagesreceived/index.md

latest494 B
Original Source

{{APIRef("WebRTC")}}

The messagesReceived property of the {{domxref("RTCDataChannelStats")}} dictionary returns the total number of message events 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}}