The RestHistoryParams interface describes the parameters accepted by the following methods:

Hierarchy

  • RestHistoryParams

Properties

Properties

direction?: "forwards" | "backwards"

The order for which messages are returned in. Valid values are 'backwards' which orders messages from most recent to oldest, or 'forwards' which orders messages from oldest to most recent. The default is 'backwards'.

Default Value

'backwards'

end?: number

The time until messages are retrieved, specified as milliseconds since the Unix epoch.

Default Value

The current time.

limit?: number

An upper limit on the number of messages returned. The default is 100, and the maximum is 1000.

Default Value

100

start?: number

The time from which messages are retrieved, specified as milliseconds since the Unix epoch.

Generated using TypeDoc