Hook class
Hook system for lifecycle events.
Constructors
- Hook()
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
beforeSubscribe(
Request request) → Hook - Trigger beforeSubscribe handlers.
-
beforeUnsubscribe(
Request request) → Hook - Trigger beforeUnsubscribe handlers.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onReconnectAttempt(
int attempt) → Hook - Trigger onReconnectAttempt handlers.
-
onReconnectFailed(
) → Hook - Trigger onReconnectFailed handlers.
-
onSubscribeFailed(
Response response) → Hook - Trigger onSubscribeFailed handlers.
-
onSubscription(
String channel) → Hook - Trigger onSubscription handlers.
-
onUnsubscription(
String channel) → Hook - Trigger onUnsubscription handlers.
-
register(
HookEvent event, Function handler) → Hook - Register a handler for a specific hook event.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited