Client class abstract
Constructors
- Client({ConnectionSettings? settings})
-
factory
Properties
- handshaking → bool
-
Check if a connection is currently in handshake state
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- settings → ConnectionSettings
-
no setter
- tuningSettings → TuningSettings?
-
no setter
Methods
-
channel(
) → Future< Channel> -
Allocate and initialize a new
Channel
. Return a Future to be completed with the newChannel
-
close(
) → Future - Shutdown any open channels and disconnect the socket. Return a Future to be completed when the client has shut down
-
connect(
) → Future - Open a working connection to the server. Returns a Future to be completed on a successful protocol handshake
-
errorListener(
void onData(Exception error), {Function? onError, void onDone()?, bool? cancelOnError}) → StreamSubscription< Exception> - Register listener for errors
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited