TcpClient class

A TCP transport client.

Constructors

TcpClient(TcpClientOptions options)
Creates a TCP client.

Properties

hashCode int
The hash code for this object.
no setterinherited
isConnected bool
Whether the client is connected.
no setter
options TcpClientOptions
The transport client options.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() Future<void>
Close the transport client connection.
connect() Future<void>
Connect to the underlying transport.
emit({required String pattern, Uint8List? payload}) Future<void>
Emit a fire-and-forget event.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
send({required String pattern, required String id, Uint8List? payload}) Future<ResponsePacket?>
Disconnect from the underlying transport.
toString() String
A string representation of this object.
inherited

Operators

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