AssistantToTheTransportManager class

Creates transport connections monitored by a transport manager. When a transport is closed, it might mean the environment does not support it. It's possible that messages get stuck in an intermediate buffer or proxies terminate inactive connections. To combat these problems, assistants monitor the connection lifetime, report unclean exits and adjust ping timeouts to keep the connection active. The decision to disable a transport is the manager's responsibility.

Annotations
  • @JS()

Properties

hashCode int
The hash code for this object.
no setterinherited
manager TransportManager
getter/setter pair
maxPingDelay num
getter/setter pair
minPingDelay num
getter/setter pair
pingDelay num
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
transport Transport
getter/setter pair

Methods

createConnection(String name, num priority, String key, Object options) TransportConnection
Creates a transport connection. This function has the same API as Transport#createConnection.
isSupported(String environment) bool
Returns whether the transport is supported in the environment. This function has the same API as Transport#isSupported. Might return false when the manager decides to kill the transport.
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