Arguments#
The key(s) of the stream(s). Can be a single stream key or an array of stream keys.
The stream entry ID(s) to start reading from. Must match the number of keys provided.
Use $ to read only new messages added after the command is issued.
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.