Skip to main content

Arguments

string
required
The key of the stream.
string
required
The consumer group name.
string
required
The consumer name that will claim the messages.
number
required
The minimum idle time in milliseconds for messages to be claimed.
string | string[]
required
The ID(s) of the message(s) to claim. Can be a single ID or an array of IDs.

Response

Returns an array of claimed messages. If justid option is used, returns only message IDs.