subscribe abstract method

Future<SubscriptionResponse> subscribe(
  1. String method,
  2. List params, {
  3. FutureOr<void> onCancel(
    1. String subscription
    )?,
})

Send subscribe message to RPC node

Implementation

Future<SubscriptionResponse> subscribe(String method, List<dynamic> params,
    {FutureOr<void> Function(String subscription)? onCancel});