TransportWsClient class abstract
@category Client */
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- options → TransportWsClientOptions
-
The options used to create the client.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → Future< void> - Closes the WebSocket gracefully.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
on(
TransportWsEventHandler listener) → void Function() - Listens on the client which dispatches events about the socket state.
-
subscribe(
Request payload, EventSink< Response> sink) → void Function() -
Subscribes through the WebSocket following the config parameters. It
uses the
sink
to emit received data or errors. Returns a cleanup function used for dropping the subscription and cleaning stuff up. -
terminate(
) → void - Terminates the WebSocket abruptly and immediately.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited