Skip to main content

Arguments#

keystringrequired#

The key of the stream.

groupstringrequired#

The consumer group name.

consumerstringrequired#

The consumer name that will claim the messages.

minIdleTimenumberrequired#

The minimum idle time in milliseconds for messages to be claimed.

idsstring | string[]required#

The ID(s) of the message(s) to claim. Can be a single ID or an array of IDs.

options#

Response#

Array<[string, string[]]> | string[]

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