TransportConnection class abstract interface

One open or opening connection.

Properties

bufferedAmount → int
Bytes queued but not yet handed to the operating system.
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

abort() → void
Drops the connection immediately, without a closing handshake. onClosed still follows.
close(int? code, String? reason) → void
Starts the closing handshake.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
ping() → void
Sends a protocol ping. Throws WebSocketUnsupportedException where pings are not available.
requestDrain() → void
Asks for one TransportListener.onDrain when bufferedAmount reaches zero (soon, if it already is). Drain events are on request only: a native transport would otherwise post one per message sent.
sendBinary(Uint8List bytes) → void
Queues a binary message. bytes is copied or sent before return; the caller may reuse it.
sendText(String text) → void
Queues a text message given as a string.
sendTextBytes(Uint8List bytes) → void
Queues a text message given as UTF-8 bytes (ownership passes to the transport; the caller must not modify bytes afterwards).
toString() → String
A string representation of this object.
inherited

Operators

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