WebSocketImpl class

dart:html WebSocket based implementation of SocketInterface.

Inheritance

Constructors

WebSocketImpl()

Properties

connectCallback VoidCallback
read / write
connectErrorSubscription StreamSubscription
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
socket WebSocket
read / write

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 invokes onConnected or onError.
override
handleDone(StringCallback doneHandler) → void
Involes handleDone if the connection is closed normally.
override
handleError(StringCallback errorHandler) → void
Invokes errorHandler if a connection error occurs.
override
listen(Uint8ListCallback messageHandler) → void
Invokes messageHandler upon reading input from the connection.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
onConnected(dynamic x) → void
send(String text) → void
Sends text over the socket.
override
sendRaw(Uint8List raw) → void
Sends raw over the socket.
override
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited

Constants

type → const String
'html'