TcpSocketClient class
Constructors
- TcpSocketClient({required dynamic host, required int port, dynamic sourceAddress, int sourcePort = 0, Duration? timeout, Map? connectData, EventEmitter? eventEmitter, Duration? pingInterval, String event_socket_invoke = "socket_invoke", String event_socket_connection = "socket_connection", String event_socket_update = "socket_update"})
Properties
- connect_data ↔ Map
-
getter/setter pair
- emitter ↔ EventEmitter
-
getter/setter pair
- event_socket_connection ↔ String
-
getter/setter pair
- event_socket_invoke ↔ String
-
getter/setter pair
- event_socket_update ↔ String
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- host ↔ dynamic
-
getter/setter pair
- isConnect ↔ bool
-
getter/setter pair
- ping_interval ↔ Duration
-
getter/setter pair
- port ↔ int
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- socket ↔ Socket
-
getter/setter pair
- sourceAddress ↔ dynamic
-
getter/setter pair
- sourcePort ↔ int
-
getter/setter pair
- timeout ↔ Duration?
-
getter/setter pair
Methods
-
connect(
{void onDataUpdate(dynamic data)?, void onDataConnection(Map data)?}) → Future< void> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
on(
String typeUpdate, dynamic callback(dynamic update), Object? context) → Listener -
send(
List< int> data) → void -
sendJson(
Map data, {bool is_compress = false}) → void -
sendString(
String data, {bool is_compress = false}) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited