connectionState
The connectionState
read-only property of the RTCPeerConnection interface indicates the current state of the peer connection by returning one of the following string values: new
, connecting
, connected
, disconnected
, failed
, or closed
.