snapcap
API ReferenceType Aliases

ThrottleConfig

Type Alias: ThrottleConfig

type ThrottleConfig = {
  rules: ThrottleRule[];
};

Defined in: transport/throttle.ts:130

Throttle configuration accepted by SnapcapClient's throttle option.

Remarks

Pass directly for per-instance throttling, or wrap with createSharedThrottle for cross-instance coordination.

See

Properties

PropertyTypeDescriptionDefined in
rulesThrottleRule[]Ordered list of rules. First-match wins per outbound URL — order specific rules before general ones.transport/throttle.ts:135

On this page