@twilio/voice-sdk
Version:
Twilio's JavaScript Voice SDK
16 lines (15 loc) • 522 B
TypeScript
import { EventEmitter } from 'events';
declare class Backoff extends EventEmitter {
/**
* Construct a {@link Backoff}.
* @param {object} options
* @property {number} min - Initial timeout in milliseconds [100]
* @property {number} max - Max timeout [10000]
* @property {boolean} jitter - Apply jitter [0]
* @property {number} factor - Multiplication factor for Backoff operation [2]
*/
constructor(options: any);
backoff(): void;
reset(): void;
}
export default Backoff;