Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/cli / DEFAULT_MAX_PENDING_EVENTS_PER_CLIENT

Variable: DEFAULT_MAX_PENDING_EVENTS_PER_CLIENT

ts
const DEFAULT_MAX_PENDING_EVENTS_PER_CLIENT: 10000 = 10_000;

Defined in: packages/cli/src/server.ts:145

The default per-connection pending-frame bound: generous enough that a reading consumer never notices (a normal reader keeps the queue near empty), small enough that a consumer that stopped reading cannot grow process memory past a few megabytes per connection.