interface RateLimit

Passed to takeToken by each limited action, which declares its own as a constant.

Properties

capacity: number

How many tokens a full bucket holds, and so the largest burst.

refill: number

Tokens regained per second.

Usage

import { type RateLimit } from "api/services/ws-service.ts";