oniceconnectionstatechange
Oniceconnectionstatechange is a WebRTC event handler property of the RTCPeerConnection interface. It is invoked whenever the ICE connection state changes during the process of establishing, maintaining, or closing a peer-to-peer connection.
The ICE connection state describes the progress of connectivity checks and data path availability. Typical values
Usage involves assigning a handler to the oniceconnectionstatechange property. In the handler, you typically read the
Notes and behavior: the event is fired any time the iceConnectionState changes, and the state progression may
See also RTCPeerConnection and ICE (Interactive Connectivity Establishment).