Class Throttler

Constructors

Properties

Methods

Constructors

Properties

bytes: number

The Bytes that are allowed to be sent each second

Since

9.0.0

lastSent: number = ...
sent: number = 0

Methods

  • Insert Data into the Throttler and wait for it to be sent

    Parameters

    • data: ArrayBuffer | Uint8Array<ArrayBufferLike> | Buffer<ArrayBufferLike>

    Returns Promise<void>

    Since

    9.0.0