TransportStrategy class

Provides a strategy interface for transports.

Implemented types
Annotations
  • @JS()

Constructors

TransportStrategy(String name, num priority, Transport transport, StrategyOptions options)
factory
TransportStrategy.fakeConstructor$()

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
getter/setter pair
options StrategyOptions
getter/setter pair
priority num
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
transport Transport
getter/setter pair

Methods

connect(num minPriority, Function callback) StrategyRunner
Launches a connection attempt and returns a strategy runner.
override
isSupported() bool
Returns whether the transport is supported in the browser.
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