RtcDataChannel class

Annotated by:
  • DocsEditable()
  • DomName('RTCDataChannel')
  • Experimental()
Extends:

Constants

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

Instance Properties

binaryType String
read/write
bufferedAmount int
read-only
id int
read-only
label String
read-only
maxRetransmitTime int
read-only
maxRetransmits int
read-only
negotiated bool
read-only
ordered bool
read-only
protocol String
read-only
readyState String
read-only
reliable bool
read-only
onClose Stream<Event>
read-only
onError Stream<Event>
read-only
onMessage Stream<MessageEvent>
read-only
onOpen Stream<Event>
read-only
on Events Inherited
read-only

Instance Methods

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