UNPKG

@testrtc/watchrtc-sdk

Version:

Monitor your WebRTC application by collecting WebRTC statistics from end users

18 lines (17 loc) 491 B
import { IBackoff } from "./interfaces"; export default class Backoff implements IBackoff { private backoff_delay; private exponentialRetries; private numRetries; private timerId; private waiting; constructor(); get delayMs(): number; reset(): void; next(): number; get attempts(): number; get MAX_RETRIES_FOR_FIRST_CONNECTION(): number; wait(timerId: any): void; unWait(forceCleaningTimer: boolean): void; get isWaiting(): boolean; }