The transport used by clients that do not set
WebSocketOptions.transport.
Defaults to the platform transport: the browser WebSocket on the web,
the pure-Dart RFC 6455 implementation on native platforms. Packages such
as ws_native install a faster one with use.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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
Static Properties
- current → WebSocketTransport
-
The transport new clients use.
no setter
- platform → WebSocketTransport
-
The platform's built-in transport.
final
Static Methods
-
use(
WebSocketTransport? transport) → void -
Makes
transportthe default for clients created afterwards;nullrestores the platform transport.