Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace Message

A message in a stream.

Properties

key

key: string

The key associated with the message, expressed as a byte array.

offset

offset: number

The offset of the message, which uniquely identifies it within the partition. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.

partition

partition: string

The ID of the partition where the message is stored.

stream

stream: string

The name of the stream that the message belongs to.

timestamp

timestamp: Date

The timestamp indicating when the server appended the message to the stream.

value

value: string

The value associated with the message, expressed as a byte array.

Functions

getDeserializedJsonObj

  • getDeserializedJsonObj(obj: Message): object

getJsonObj