WebRTCDataChannel.ChannelState

Values

ValueMeaning
stateConnecting0

The channel was created, but it's still trying to connect.

stateOpen1

The channel is currently open, and data can flow over it.

stateClosing2

The channel is being closed, no new messages will be accepted, but those already in queue will be flushed.

stateClosed3

The channel was closed, or connection failed.

Meta