WebSocketPingValidatorProperties class
Constructors
-
WebSocketPingValidatorProperties({required void onMessage(dynamic), void onConnected(DateTime, WebSocket)?, void onError(Object)?, void onConnectionClosed(int, String?)?, void onConnectionLost()?, void onReconnectStarted(Duration)?, required void onNewInstanceCreated(WebSocket), required Future<
bool> reconnectOnError(), Future<bool> reconnectOnConnectionLost()?, Duration periodicDurationToMakePing = const Duration(seconds: 5), Duration reconnectIn = const Duration(seconds: 3), Future<bool> validateIfCanMakeConnection()?})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- onConnected → void Function(DateTime, WebSocket)?
-
final
- onConnectionClosed → void Function(int, String?)?
-
final
- onConnectionLost → void Function()?
-
final
- onError → void Function(Object)?
-
final
- onMessage → void Function(dynamic)
-
final
- onNewInstanceCreated → void Function(WebSocket)
-
final
- onReconnectStarted → void Function(Duration)?
-
final
- periodicDurationToMakePing → Duration
-
final
- reconnectIn → Duration
-
final
-
reconnectOnConnectionLost
→ Future<
bool> Function() -
final
-
reconnectOnError
→ Future<
bool> Function() -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
validateIfCanMakeConnection
→ Future<
bool> Function() -
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited