TcpSocketClient constructor
TcpSocketClient({})
Implementation
TcpSocketClient({
required this.host,
required this.port,
this.sourceAddress,
this.sourcePort = 0,
this.timeout,
Map? connectData,
Duration? pingInterval,
}) {
pingInterval ??= Duration(seconds: 1);
ping_interval = pingInterval;
if (connectData != null) {
connect_data.addAll(connect_data);
}
}