ReconnectingWebSocket class
No implicit replay of sent messages. Subscribe before calling start.
Constructors
-
ReconnectingWebSocket(Future<
WebSocketConnection> connect(CancellationToken token), {WebSocketOptions options = const WebSocketOptions()})
Properties
-
connect
→ Future<
WebSocketConnection> Function(CancellationToken token) -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
messages
→ Stream<
Object> -
no setter
- options → WebSocketOptions
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → Future< void> - Cancels the loop and awaits owned connection cleanup, once.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
send(
Object message) → void -
start(
) → Future< void> - Runs until reconnection is exhausted or disposal ends the loop.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited