Transport class
Provides interface for transport connection instantiation. Takes transport-specific hooks as the only argument, which allow checking for transport support and creating its connections. Supported hooks: * - file - the name of the file to be fetched during initialization
- urls - URL scheme to be used by transport
- handlesActivityCheck - true when the transport handles activity checks
- supportsPing - true when the transport has a ping/activity API
- isSupported - tells whether the transport is supported in the environment
- getSocket - creates a WebSocket-compatible transport socket See transports.js for specific implementations.
- Annotations
-
- @JS()
Constructors
- Transport(TransportHooks hooks)
-
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- hooks ↔ TransportHooks
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
createConnection(
String name, num priority, String key, dynamic options) → TransportConnection - Creates a transport connection.
-
isSupported(
dynamic environment) → bool - Returns whether the transport is supported in the environment.
-
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