send method
Implementation
@override
Future<bool> send(List<int> bytes) async {
try {
// final _socket = await Socket.connect(_host, _port, timeout: _timeout);
_socket?.add(Uint8List.fromList(bytes));
await Future.delayed(Duration(seconds: 1));
// await _socket?.flush();
// _socket?.destroy();
return true;
} catch (e) {
_socket?.destroy();
return false;
}
}