SocketInterface class abstract
Websocket style interface for BSD sockets and/or RFC6455 WebSockets.
- Inheritance
-
- Object
- ConnectionInterface
- SocketInterface
- Implementers
Constructors
Properties
- connected → bool
-
no setter
- connecting → bool
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
close(
) → void -
Closed the connection.
inherited
-
connect(
Uri uri, VoidCallback onConnected, StringCallback onError, {int timeoutSeconds = 15, bool ignoreBadCert = false}) → void -
Connects the socket to
uri
then invokesonConnected
oronError
. -
handleDone(
StringCallback doneHandler) → void -
Involes handleDone if the connection is closed normally.
inherited
-
handleError(
StringCallback errorHandler) → void -
Invokes
errorHandler
if a connection error occurs.inherited -
listen(
Uint8ListCallback messageHandler) → void -
Invokes
messageHandler
upon reading input from the connection.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
send(
String text) → void -
Sends
text
over the socket. -
sendRaw(
Uint8List raw) → void -
Sends
raw
over the socket. -
shutdown(
ConnectionDirection direction) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited