FlintWebSocketClient class
Constructors
Properties
- debug → bool
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> ? -
final
- isConnected → bool
-
no setter
-
params
→ Map<
String, dynamic> ? -
final
- queuedMessageCount → int
-
Get number of queued messages
no setter
- reconnectAttempt → int
-
Get current reconnect attempt number
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → WebSocketConnectionState
-
no setter
- token → String?
-
final
- url → String
-
final
Methods
-
close(
[int code = WebSocketStatus.normalClosure, String? reason]) → void -
connect(
) → Future< void> -
dispose(
) → void -
emit(
String event, dynamic data) → void -
join(
String room) → void -
leave(
String room) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
off(
String event, [Function? handler]) → void -
on(
String event, dynamic handler(dynamic data)) → void -
reconnect(
) → Future< void> - Manually trigger reconnection
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited