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.

startstringrequired#

The stream entry ID to start claiming from.

optionsobject#

Response#

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

Returns a tuple containing:

  • Next start ID for pagination
  • Array of claimed messages (ID and field-value pairs)
  • Array of deleted message IDs