subscribe method

Stream<QueryResult<Object?>> subscribe(
  1. SubscriptionOptions<Object?> options, {
  2. FutureOr<Version?> ver()?,
})

Subscribes to a GraphQL subscription according to the options specified.

Implementation

Stream<QueryResult> subscribe(
  SubscriptionOptions options, {
  FutureOr<Version?> Function()? ver,
}) {
  return SubscriptionHandle(_subscribe, options, ver: ver).stream;
}