HtmlWebSocketChannel class

A WebSocketChannel that communicates using a dart:html WebSocket.

Inheritance
Implemented types

Constructors

HtmlWebSocketChannel(WebSocket _webSocket)
Creates a channel wrapping webSocket.
HtmlWebSocketChannel.connect(dynamic url, { Iterable<String> protocols, BinaryType binaryType })
Creates a new WebSocket connection. [...]

Properties

bufferedAmount → int
The number of bytes of data that have been queued but not yet transmitted to the network.
read-only
closeCode → int
The close code set when the WebSocket connection is closed. [...]
read-only, override
closeReason → String
The close reason set when the WebSocket connection is closed. [...]
read-only, override
protocol → String
The subprotocol selected by the server. [...]
read-only, override
sink WebSocketSink
The sink for sending values to the other endpoint. [...]
read-only, override
stream → Stream
The single-subscription stream that emits values from the other endpoint.
read-only, override
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

Methods

cast<S>() StreamChannel<S>
Returns a copy of this with the generic type coerced to S. [...]
inherited
changeSink(StreamSink change(StreamSink<T> sink)) StreamChannel
Returns a copy of this with sink replaced by change's return value.
inherited
changeStream(Stream change(Stream<T> stream)) StreamChannel
Returns a copy of this with stream replaced by change's return value.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
pipe(StreamChannel other) → void
Connects this to other, so that any values emitted by either are sent directly to the other.
inherited
toString() → String
Returns a string representation of this object.
inherited
transform<S>(StreamChannelTransformer<S, dynamic> transformer) StreamChannel<S>
Transforms this using transformer. [...]
inherited
transformSink(StreamSinkTransformer transformer) StreamChannel
Transforms only the sink component of this using transformer.
inherited
transformStream(StreamTransformer transformer) StreamChannel
Transforms only the stream component of this using transformer.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited