BaseBrokerOptions
interface BaseBrokerOptions
interface BaseBrokerOptions
Base options for a broker implementation
Optional
blockTimeout?
:
number
How long to block for messages when polling
Optional
decode?
:
(data: Buffer) => unknown
Function to use for decoding messages
Optional
encode?
:
(data: unknown) => Buffer
Function to use for encoding messages
Optional
maxChunk?
:
number
Max number of messages to poll at once
Optional
name?
:
string
Unique consumer name. See: https://redis.io/commands/xreadgroup/