Skip to main content

LighterWsMessageRateLimiter

Type Alias LighterWsMessageRateLimiter 

Source
pub type LighterWsMessageRateLimiter = Arc<RateLimiter<Ustr, MonotonicClock>>;
Expand description

Shared WebSocket message limiter, keyed by venue WS URL. Both data and execution clients (and the backend balance poller) draw from one bucket per URL so their combined send rate honors the venue’s per-IP cap.

Aliased Type§

pub struct LighterWsMessageRateLimiter { /* private fields */ }