SubscriptionConnection class

Wrapper around a Stream, representing an ongoing GraphQL subscription with an ability to add errors to it.

May be (and intended to) be used to implement re-subscription requests.

Constructors

SubscriptionConnection(Stream<QueryResult<Object?>> _stream)

Properties

hashCode int
The hash code for this object.
no setterinherited
hasListener bool
Indicates whether there is a subscriber on the stream or not.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stream Stream<QueryResult<Object?>>
Returns a merged stream of the subscription this SubscriptionConnection represents and an addon stream.
no setter

Methods

addError(Object error, [StackTrace? stackTrace]) → void
Sends or enqueues an error event to the stream.
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