state property

The state read-only property of the RTCIceTransport interface returns the current state of the ICE transport, so you can determine the state of ICE gathering in which the ICE agent currently is operating.

This differs from the RTCIceTransport.gatheringState, which only indicates whether or not ICE gathering is currently underway. It also differs from RTCPeerConnection.connectionState, which aggregates the states across every RTCIceTransport used by every RTCRtpSender and every RTCRtpReceiver on the entire connection.

Implementation

external RTCIceTransportState get state;