WebSocketService class
Constructors
-
WebSocketService(Uri uri, {void onReceive(WebSocketEventMessage)?, void onDone()?, void onError(dynamic)?, void onConnecting()?, void onConnected()?, void onConnectionFail(dynamic)?, Duration reconnectIn = const Duration(seconds: 10), Map<
String, dynamic> ? headers})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
↔ Map<
String, dynamic> ? -
getter/setter pair
- isActive → bool
-
no setter
- onConnected → (void Function()?)
-
final
- onConnecting → (void Function()?)
-
final
- onConnectionFail → (void Function(dynamic)?)
-
final
- onDone → (void Function()?)
-
final
- onError → (void Function(dynamic)?)
-
final
- onReceive → (void Function(WebSocketEventMessage)?)
-
final
- reconnectIn → Duration
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- uri → Uri
-
final
Methods
-
close(
) → void -
connect(
) → Future< void> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reconnect(
) → void -
send(
WebSocketEventMessage eventMessage) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited