send method

  1. @override
Future<bool> send(
  1. List<int> bytes
)
override

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 _socket?.flush();
    _socket?.destroy();
    return true;
  } catch (e) {
    return false;
  }
}