SubscriptionHandle class

Steady StreamController listening to the provided GraphQL subscription events and resubscribing on the errors.

Constructors

SubscriptionHandle.new(FutureOr<SubscriptionConnection> _listen(SubscriptionOptions<Object?>), void _cancel(SubscriptionConnection?), SubscriptionOptions<Object?> _options, {FutureOr<Version?> ver()?, bool resubscribe = true})

Properties

hashCode int
The hash code for this object.
no setterinherited
resubscribe bool
Indicator whether resubscription should happen automatically on ResubscriptionRequiredException or not.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stream Stream<QueryResult<Object?>>
Stream of the events of this SubscriptionHandle.
no setter
ver FutureOr<Version?> Function()?
Callback, called when a Version to pass the SubscriptionOptions is required.
final

Methods

cancel() → void
Cancels the subscription.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited