Not documented.

Annotations
  • DocsEditable()
  • DomName('RTCDataChannel')
  • Experimental()
Extends

Constants

EventStreamProvider<Event> closeEvent = const EventStreamProvider<Event>('close')
const
Static factory designed to expose close events to event handlers that are not necessarily instances of RtcDataChannel.
EventStreamProvider<Event> errorEvent = const EventStreamProvider<Event>('error')
const
Static factory designed to expose error events to event handlers that are not necessarily instances of RtcDataChannel.
EventStreamProvider<MessageEvent> messageEvent = const EventStreamProvider<MessageEvent>('message')
const
Static factory designed to expose message events to event handlers that are not necessarily instances of RtcDataChannel.
EventStreamProvider<Event> openEvent = const EventStreamProvider<Event>('open')
const
Static factory designed to expose open events to event handlers that are not necessarily instances of RtcDataChannel.

Properties

String binaryType
read / write
int bufferedAmount
read-only
int id
read-only
String label
read-only
int maxRetransmits
read-only
int maxRetransmitTime
read-only
bool negotiated
read-only
Events on
read-only, inherited
This is an ease-of-use accessor for event streams which should only be used when an explicit accessor is not available.
Stream<Event> onClose
read-only
Stream of close events handled by this RtcDataChannel.
Stream<Event> onError
read-only
Stream of error events handled by this RtcDataChannel.
Stream<MessageEvent> onMessage
read-only
Stream of message events handled by this RtcDataChannel.
Stream<Event> onOpen
read-only
Stream of open events handled by this RtcDataChannel.
bool ordered
read-only
String protocol
read-only
String readyState
read-only
bool reliable
read-only

Methods

addEventListener(String type, dynamic listener(Event event), [bool useCapture]) → void
inherited
close() → void
dispatchEvent(Event event) → bool
inherited
removeEventListener(String type, dynamic listener(Event event), [bool useCapture]) → void
inherited
send(data) → void
sendBlob(Blob data) → void
sendByteBuffer(ByteBuffer data) → void
sendString(String data) → void
sendTypedData(TypedData data) → void