WebRTCPeerConnection.ConnectionState

Values

ValueMeaning
stateNew0

The connection is new, data channels and an offer can be created in this state.

stateConnecting1

The peer is connecting, ICE is in progress, none of the transports has failed.

stateConnected2

The peer is connected, all ICE transports are connected.

stateDisconnected3

At least one ICE transport is disconnected.

stateFailed4

One or more of the ICE transports failed.

stateClosed5

The peer connection is closed (after calling close for example).

Meta