Transport class abstract

Carries whole DataChannel messages: one send is one message, boundaries preserved, ordered and reliable — the contract an RTCDataChannel (or the loopback pair) offers. Inbound messages arrive on onMessage; the stream completing means the transport closed.

Implementers

Constructors

Transport()

Properties

hashCode → int
The hash code for this object.
no setterinherited
onMessage → Stream<Uint8List>
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → Future<void>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
send(Uint8List data) → void
toString() → String
A string representation of this object.
inherited

Operators

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