WebSocketClientInterface class abstract
Interface used to create WebSocketClient.
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → WebSocketClientState
-
Returns the state of the web socket client.
no setter
Methods
-
close(
) → Future - Closes the web socket client.
-
connect(
{required String uri, Map< String, dynamic> ? headers, String protocol}) → Future<void> - Connects to the server using the given uri and protocol.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
read(
) → Future - Reads a message from the web socket.
-
reset(
) → Future< void> - Resets the web socket client.
-
send(
dynamic message) → Future< void> - Sends a message to the web socket.
-
toString(
) → String -
A string representation of this object.
inherited
-
waitRemoteClose(
) → Future< int?> - Waits for the remote to close the web socket.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited