Skip to main content

Module consumer

Module consumer 

Source
Expand description

Jetstream WebSocket consumer with bounded backpressure.

The consumer connects to a Jetstream relay over WebSocket, reads events, and dispatches them through a bounded mpsc channel to a user-supplied handler. When the channel fills up, events are dropped and metrics are updated.

Functionsยง

spawn_consumer
Spawn the Jetstream consumer as a pair of background tasks.