pusher-js/core/strategies/best_connected_ever_strategy library

Classes

BestConnectedEverStrategy
Launches all substrategies and emits prioritized connected transports.

Functions

abortRunner(dynamic runner) → dynamic
allRunnersFailed(dynamic runners) bool
connect(List<Strategy> strategies, num minPriority, Function callbackBuilder) → dynamic
Connects to all strategies in parallel. Callback builder should be a function that takes two arguments: index and a list of runners. It should return another function that will be passed to the substrategy with given index. Runners can be aborted using abortRunner(s) functions from this class.