WebSocketTransport class
A WebSocket as an AtTransport.
Frames go out binary. Frames come in as text or binary, and both reach inbound as bytes.
- Implemented types
Properties
- description → String
-
Identifies the far end well enough for one log line.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
inbound
→ Stream<
List< int> > -
Single-subscription. A WebSocket cannot be paused, so while this
subscription is paused or not yet listened to, frames are held here, up
to
maxInboundBytes. Past that the socket is closed and this stream ends with anAtIOException.no setteroverride - isOpen → bool
-
Whether the channel can still carry bytes: false once destroy has run,
or once this side has closed it.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
add(
List< int> bytes) → void -
Throws
AtIOException, sending nothing, once the socket is notOPEN.override -
destroy(
) → void -
Closes the socket and inbound. Calling it again does nothing.
override
-
flush(
) → Future< void> -
Completes once the socket's
bufferedAmountis at mosthighWaterMark, at once when it already is, polling for it otherwise.override -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited