Skip to main content

Arguments

string
required
The consumer group name.
string
required
The consumer name within the group.
string | string[]
required
The stream key(s) to read from. Can be a single stream key or an array of stream keys for multiple streams.
string | string[]
required
The starting ID(s) to read from. Use ”>” to read messages never delivered to any consumer in the group. For multiple streams, provide an array of IDs corresponding to each stream.

Response

Returns an array where each element represents a stream and contains:
  • The stream key
  • An array of messages (ID and field-value pairs)
Returns null if no data is available.