RTCDataChannelWeb class

Inheritance

Constructors

RTCDataChannelWeb(RtcDataChannel _jsDc)

Properties

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

Methods

close() Future<void>
override
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
override
toString() String
A string representation of this object.
inherited

Operators

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