subscribe method

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

Send subscribe message to RPC node

Implementation

@override
Future<SubscriptionResponse> subscribe(String method, List params,
    {FutureOr<void> Function(String subscription)? onCancel}) {
  throw Exception('HttpProvider does not support subscriptions');
}