UNPKG

websocket-ts

Version:

<div> <div align="center"> <img src="https://raw.githubusercontent.com/jjxxs/websocket-ts/gh-pages/websocket-ts-logo.svg" alt="websocket-ts" width="300" height="65" /> </div> <p align="center"> <img src="https://github.com/jjxxs/websocket-ts

18 lines 489 B
import { Backoff } from "./backoff"; /** * ConstantBackoff always returns the same backoff-time. */ export declare class ConstantBackoff implements Backoff { private readonly backoff; private _retries; /** * Creates a new ConstantBackoff. * @param backoff the backoff-time to return */ constructor(backoff: number); get retries(): number; get current(): number; next(): number; reset(): void; } //# sourceMappingURL=constantbackoff.d.ts.map