sendCustomResponse method

Future sendCustomResponse({
  1. required int id,
  2. String? result,
  3. String? error,
})

Send a custom response.

Implementation

Future sendCustomResponse({
  required int id,
  String? result,
  String? error,
}) async {
  final response = JsonRpcResponse(
    id: id,
    result: result,
    error: error,
  );

  return _sendResponse(response);
}