Skip to main content

ISequencedDocumentMessage Interface

Sequenced message for a distributed document.

Signature

export interface ISequencedDocumentMessage

Properties

Property Alerts Modifiers Type Description
clientId string | null The client ID that submitted the message. For server generated messages the clientId will be null;
clientSequenceNumber number The document's client sequence number.
compression Deprecated optional string The compression algorithm that was used to compress contents of this message.
contents unknown The contents of the message.
data optional string Data provided by service. Only present in service generated messages.
expHash1 Deprecated optional string Experimental field for storing the rolling hash at sequence number.
metadata optional unknown App provided metadata about the operation.
minimumSequenceNumber number The minimum sequence number for all connected clients.
origin optional IBranchOrigin Origin branch information for the message.
referenceSequenceNumber number The reference sequence number the message was sent relative to.
sequenceNumber number The sequenced identifier.
serverMetadata optional unknown Server provided metadata about the operation.
timestamp number Timestamp when the server ticketed the message.
traces optional ITrace[] Traces related to the packet.
type string The type of operation.

Property Details

clientId

The client ID that submitted the message. For server generated messages the clientId will be null;

Signature

clientId: string | null;

Type: string | null

clientSequenceNumber

The document's client sequence number.

Signature

clientSequenceNumber: number;

Type: number

compression

The compression algorithm that was used to compress contents of this message.

This API is deprecated and will be removed in a future release.

Use ISequencedDocumentMessageExperimental instead.

Signature

compression?: string;

Type: string

contents

The contents of the message.

Signature

contents: unknown;

Type: unknown

data

Data provided by service. Only present in service generated messages.

Signature

data?: string;

Type: string

expHash1

Experimental field for storing the rolling hash at sequence number.

This API is deprecated and will be removed in a future release.

Use ISequencedDocumentMessageExperimental instead.

Signature

expHash1?: string;

Type: string

metadata

App provided metadata about the operation.

Signature

metadata?: unknown;

Type: unknown

minimumSequenceNumber

The minimum sequence number for all connected clients.

Signature

minimumSequenceNumber: number;

Type: number

origin

Origin branch information for the message.

Signature

origin?: IBranchOrigin;

Type: IBranchOrigin

Remarks

Can be marked undefined if the current message is also the origin.

referenceSequenceNumber

The reference sequence number the message was sent relative to.

Signature

referenceSequenceNumber: number;

Type: number

sequenceNumber

The sequenced identifier.

Signature

sequenceNumber: number;

Type: number

serverMetadata

Server provided metadata about the operation.

Signature

serverMetadata?: unknown;

Type: unknown

timestamp

Timestamp when the server ticketed the message.

Signature

timestamp: number;

Type: number

traces

Traces related to the packet.

Signature

traces?: ITrace[];

Type: ITrace[]

type

The type of operation.

Signature

type: string;

Type: string