WebSocketConnection class
An implementation of SocketConnection that uses WebSockets for communication
by wrapping WebSocketChannel.
- Inheritance
-
- Object
- SocketConnection
- WebSocketConnection
Constructors
- WebSocketConnection(WebSocketChannel _channel)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isInKeepAlivePeriod → bool
-
Whether this connection is currently in the KeepAlive timeout period.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sink → StreamSink
-
Messages added to the sink must be JSON encodable.
no setteroverride
-
stream
→ Stream<
String> -
no setteroverride
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
shutdown(
) → void -
Immediately close the connection, ignoring any keepAlive period.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited