Transport class abstract
An interface for transporting messages, define the methods necessary to send and receive messages, independently from the underlying transport mechanism.
Constructors
- Transport.create(TransportConnector connector)
-
Create a new transport
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
incoming
→ Stream<
List< int> > -
Stream of incoming messages
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 a message
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited