WebSocketClient class
Constructors
-
WebSocketClient({required String url, required WebSocketListener listener, List<
String> ? protocols, Map<String, dynamic> ? headers})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, dynamic> ? -
final
- isConnected → bool
-
no setter
- listener → WebSocketListener
-
final
-
protocols
→ List<
String> ? -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- url → String
-
final
Methods
-
connect(
) → void -
disconnect(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
requestClose(
int code, String reason) → void -
send(
String textData) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited