WebSocketImpl class
dart:io WebSocket based implementation of SocketInterface.
- Inheritance
-
- Object
- ConnectionInterface
- SocketInterface
- WebSocketImpl
- Implementers
Constructors
Properties
- connected → bool
-
no setteroverride
- connecting ↔ bool
-
getter/setter pairoverride-getter
- doneHandler ↔ StringCallback
-
getter/setter pair
- errorHandler ↔ StringCallback
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- messageHandler ↔ Uint8ListCallback
-
getter/setter pair
- messageSubscription ↔ StreamSubscription
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- socket ↔ WebSocket
-
getter/setter pair
Methods
-
close(
) → void -
Closed the connection.
override
-
connect(
Uri uri, VoidCallback onConnected, StringCallback onError, {int timeoutSeconds = 15, bool ignoreBadCert = false}) → void -
Connects the socket to
uri
then invokesonConnected
oronError
.override -
connectSucceeded(
VoidCallback onConnected) → void -
handleDone(
StringCallback newDoneHandler) → void -
Involes handleDone if the connection is closed normally.
override
-
handleError(
StringCallback newErrorHandler) → void -
Invokes
errorHandler
if a connection error occurs.override -
listen(
Uint8ListCallback newMessageHandler) → void -
Invokes
messageHandler
upon reading input from the connection.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
send(
String text) → void -
Sends
text
over the socket.override -
sendRaw(
Uint8List raw) → void -
Sends
raw
over the socket.override -
shutdown(
ConnectionDirection direction) → void -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited