request method

Future<Map<String, Object?>> request(
  1. String channel,
  2. String method, [
  3. Map<String, Object?> params = const {}
])

Sends a req frame and returns the response payload; throws ServerRequestException when the server answers with err — a missing handler, or the handler itself throwing.

Implementation

Future<Map<String, Object?>> request(
  String channel,
  String method, [
  Map<String, Object?> params = const {},
]) => _session.request(channel, method, params);