Arguments#
The consumer group name.
The consumer name within the group.
The stream key(s) to read from. Can be a single stream key or an array of stream keys for multiple streams.
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#
Array<[string, Array<[string, string[]]>]> | null
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.