subscribe method
Subscribes to a GraphQL subscription according to the options
specified.
Implementation
Stream<QueryResult> subscribe(
SubscriptionOptions options, {
FutureOr<Version?> Function()? ver,
bool resubscribe = true,
}) {
return SubscriptionHandle(
_subscribe,
(e) {
_subscriptions.remove(e);
e?.dispose();
},
options,
ver: ver,
resubscribe: resubscribe,
).stream;
}