WebSocketSubscription<T> class
Web Socket Subscription
Constructors
-
WebSocketSubscription(int id, {required int exchangeId, required StreamSubscription<
T> streamSubscription}) - Stores a web socket stream subscription.
Properties
- createdAt → DateTime
-
The UTC created date time.
final
- exchangeId → int
-
The
subscriberequest/response id.final - hashCode → int
-
The hash code for this object.
no setterinherited
- id → int
-
The subscription id.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
streamSubscription
→ StreamSubscription<
T> -
The stream subscription.
final
Methods
-
cancel(
) → Future< void> - Cancels the stream subscription.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
on(
void onData(T data)?, {void onError(Object error, [StackTrace? stackTrace])?, void onDone()?}) → void - Attaches the provided handlers to the stream subscription.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited