ModuleRpcClient

Generic tooling to implement the client side of an RPC service. To create an RPC client, however, see ModuleRpcProtocolClient.getRpcClient.

license

Copyright (c) Aiden.ai

This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.

Index

Interfaces

Functions

Object literals

Functions

getBackoffMs

  • Gets the number of milliseconds to elapse for a given number of retries and a backoff schedule.

    Parameters

    Returns number

Object literals

Const DEFAULT_BACKOFF_OPTIONS

DEFAULT_BACKOFF_OPTIONS: object

Default options for an exponential backoff.

constantBackoffMs

constantBackoffMs: number = 500

exponentialBackoffBase

exponentialBackoffBase: number = 2

maxBackoffMs

maxBackoffMs: number = 3000

maxRetries

maxRetries: number = -1