The RTCIceCandidatePairStats
dictionary's packetsSent
property indicates the total number of packets which have been sent on the connection described by the pair of candidates.
The number of packets received to date on the connection can be obtained using packetsReceived
.