WebSocketSubscriptionManager class
Web Socket Subscription Manager
Constructors
- WebSocketSubscriptionManager()
- Adds and removes stream listeners for a web socket subscription.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEmpty → bool
-
True if there are no subscriptions.
no setter
- isNotEmpty → bool
-
True if there's at least one subscriber.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
values
→ Iterable<
StreamController> -
All subscriptions.
no setter
Methods
-
close(
{required int exchangeId}) → Future< void> -
Closes the stream controller for
exchangeId. -
dispose(
) → Future< void> - Closes all stream controllers.
-
hasListener(
SubscriptionId subscriptionId) → bool - Returns true if there's a subscriber on the Stream.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
subscribe<
T> (JsonRpcSubscribeResponse response) → WebSocketSubscription< T> -
Adds a subscriber to the Stream associated with the
subscriberesponse. -
toString(
) → String -
A string representation of this object.
override
-
unsubscribe<
T> (WebSocketSubscription< T> subscription) → Future<void> -
Removes a subscriber from the Stream associated with the
subscription.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited