Back to Content

RTCDataChannelStats: messagesSent property

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

latest487 B
Original Source

{{APIRef("WebRTC")}}

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

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}