getStats method
[Some information relates to pre-released product which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.]
The getStats method gathers stats of the RTCPeerConnection and reports the result asynchronously. If the RTCPeerConnection has not yet begun to send or receive data, the returned stats will reflect this. If the object is in the closed state, the returned stats will reflect the stats at the time the object transitioned to the closed state.
Syntax
var retval = RTCPeerConnection.getStats();
Parameters
This method has no parameters.
Return value
Type: Promise<RTCStatsReport>
A promise that resolves to an RTCStatsReport object.