sendDataToCustomEndPoint method

Future<Uint8List> sendDataToCustomEndPoint(
  1. String path,
  2. Uint8List data
)

Implementation

Future<Uint8List> sendDataToCustomEndPoint(
    String path, Uint8List data) async {
  if (_session == null || !_session!.isSessionEstablished) {
    try {
      await _initSession();
    } catch (e) {
      //print(e);
      rethrow;
    }

    return await _sendData(path, data);
  } else {
    return await _sendData(path, data);
  }
}