The messagesSent property of the RTCDataChannelStats dictionary returns the total number of message events fired for sent messages on the associated RTCDataChannel.
A positive integer value indicating the total number of message events for outbound data on the associated data channel.