onstatechange
Summary
Handles the statechange event for when the readyState property is changed, i.e. with a call to setLocalDescription() or setRemoteDescription(). The event does not fire when a new RTCPeerConnection object is created.
Property of apis/webrtc/RTCPeerConnectionapis/webrtc/RTCPeerConnection
Syntax
var result = element.onstatechange;
element.onstatechange = value;