RTCDataChannel class

The interface represents a network channel which can be used for bidirectional peer-to-peer transfers of arbitrary data. Every data channel is associated with an RTCPeerConnection, and each peer connection can have up to a theoretical maximum of 65,534 data channels (the actual limit may vary from browser to browser). To create a data channel and ask a remote peer to join you, call the RTCPeerConnection's createDataChannel() method. The peer being invited to exchange data receives a datachannel event (which has type RTCDataChannelEvent) to let it know the data channel has been added to the connection.

EventTarget

RTCDataChannel

Implemented types
Available extensions
Annotations
  • @experimental
  • @JS()
  • @staticInterop

Constructors

RTCDataChannel()
factory

Properties

binaryType BinaryType

Available on RTCDataChannel, provided by the PropsRTCDataChannel extension

getter/setter pair
bufferedAmount int

Available on RTCDataChannel, provided by the PropsRTCDataChannel extension

no setter
bufferedAmountLowThreshold int

Available on RTCDataChannel, provided by the PropsRTCDataChannel extension

getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id int?

Available on RTCDataChannel, provided by the PropsRTCDataChannel extension

no setter
label String

Available on RTCDataChannel, provided by the PropsRTCDataChannel extension

no setter
maxPacketLifeTime int?

Available on RTCDataChannel, provided by the PropsRTCDataChannel extension

no setter
maxRetransmits int?

Available on RTCDataChannel, provided by the PropsRTCDataChannel extension

no setter
negotiated bool

Available on RTCDataChannel, provided by the PropsRTCDataChannel extension

no setter
onbufferedamountlow EventHandlerNonNull<Event>?

Available on RTCDataChannel, provided by the PropsRTCDataChannel extension

getter/setter pair
onclose EventHandlerNonNull<Event>?

Available on RTCDataChannel, provided by the PropsRTCDataChannel extension

getter/setter pair
onclosing EventHandlerNonNull<Event>?

Available on RTCDataChannel, provided by the PropsRTCDataChannel extension

getter/setter pair
onerror EventHandlerNonNull<Event>?

Available on RTCDataChannel, provided by the PropsRTCDataChannel extension

getter/setter pair
onmessage EventHandlerNonNull<Event>?

Available on RTCDataChannel, provided by the PropsRTCDataChannel extension

getter/setter pair
onopen EventHandlerNonNull<Event>?

Available on RTCDataChannel, provided by the PropsRTCDataChannel extension

getter/setter pair
ordered bool

Available on RTCDataChannel, provided by the PropsRTCDataChannel extension

no setter
priority RTCPriorityType

Available on RTCDataChannel, provided by the PropsRTCDataChannel extension

no setter
protocol String

Available on RTCDataChannel, provided by the PropsRTCDataChannel extension

no setter
readyState RTCDataChannelState

Available on RTCDataChannel, provided by the PropsRTCDataChannel extension

no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addEventListener(String type, EventListener? callback, [dynamic options]) → void

Available on EventTarget, provided by the PropsEventTarget extension

close() → void

Available on RTCDataChannel, provided by the PropsRTCDataChannel extension

dispatchEvent(Event event) bool

Available on EventTarget, provided by the PropsEventTarget extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeEventListener(String type, EventListener? callback, [dynamic options]) → void

Available on EventTarget, provided by the PropsEventTarget extension

send(String data) → void

Available on RTCDataChannel, provided by the PropsRTCDataChannel extension

toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited