TransportConnection class abstract

An interface for transporting messages, define the methods necessary to send and receive messages, independently from the underlying transport mechanism.

Constructors

TransportConnection.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
incoming Stream<List<int>>
Stream of incoming data
no setter
isConnected bool
Whether the connection is active
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Operators

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