receive method

Map<String, dynamic>? receive([
  1. double timeout = 10
])

Call td json receive, convert result to json object It will response null if receive empty string (timeout)

Implementation

Map<String, dynamic>? receive([double timeout = 10]) {
  String? s = _rawClient.td_json_client_receive(clientId!, timeout);
  if (s == null) {
    return null;
  }
  Map<String, dynamic> j = json.decode(s);
  return j;
}