AutoReconnectWebSocket class
Constructors
-
AutoReconnectWebSocket({required String url, required Future<
bool> onClosed(dynamic error)?})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
onClosed
→ (Future<
bool> Function(dynamic error)?) -
Callback when socket is closed
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sink → StreamSink?
-
Sink for sending messages.
no setter
- state → ConnectionState
-
no setter
-
stateChangeListeners
→ List<
void Function(ConnectionState)> -
no setter
- stream → Stream
-
Stream for receiving messages. Do not use it for sending messages.
no setter
- url → String
-
final
Methods
-
connect(
) → Future -
dispose(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reconnect(
) → Future< bool> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited