RTCDataChannel class abstract

Implementers

Constructors

RTCDataChannel()

Properties

hashCode int
The hash code for this object.
no setterinherited
label String?
Get channel label
no setter
messageStream Stream<RTCDataChannelMessage>
Stream of incoming messages. Emits the message. Closes when the RTCDataChannel is closed.
getter/setter pair
onDataChannelState ↔ dynamic Function(RTCDataChannelState state)?
getter/setter pair
onMessage ↔ dynamic Function(RTCDataChannelMessage data)?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state RTCDataChannelState?
Get current state.
no setter
stateChangeStream Stream<RTCDataChannelState>
Stream of state change events. Emits the new state on change. Closes when the RTCDataChannel is closed.
getter/setter pair

Methods

close() Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
send(RTCDataChannelMessage message) Future<void>
Send a message to this datachannel. To send a text message, use the default constructor to instantiate a text RTCDataChannelMessage for the message parameter. To send a binary message, pass a binary RTCDataChannelMessage constructed with RTCDataChannelMessage.fromBinary
toString() String
A string representation of this object.
inherited

Operators

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