Skip to main content

ISequencedDocumentMessage Interface

Sequenced message for a distributed document.

This API is provided for existing users, but is not recommended for new users.

To use, import via fluid-framework/legacy.

For more information about our API support guarantees, see here.

Signature​

export interface ISequencedDocumentMessage

Properties​

PropertyAlertsModifiersTypeDescription
clientIdBetastring | nullThe client ID that submitted the message. For server generated messages the clientId will be null;
clientSequenceNumberBetanumberThe document's client sequence number.
compressionDeprecated, BetaoptionalstringThe compression algorithm that was used to compress contents of this message.
contentsBetaunknownThe contents of the message.
dataBetaoptionalstringData provided by service. Only present in service generated messages.
expHash1Deprecated, BetaoptionalstringExperimental field for storing the rolling hash at sequence number.
metadataBetaoptionalunknownApp provided metadata about the operation.
minimumSequenceNumberBetanumberThe minimum sequence number for all connected clients.
originBetaoptionalIBranchOriginOrigin branch information for the message.
referenceSequenceNumberBetanumberThe reference sequence number the message was sent relative to.
sequenceNumberBetanumberThe sequenced identifier.
serverMetadataBetaoptionalunknownServer provided metadata about the operation.
timestampBetanumberTimestamp when the server ticketed the message.
tracesBetaoptionalITrace[]Traces related to the packet.
typeBetastringThe type of operation.

Property Details​

clientId​

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

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature​

clientId: string | null;

Type: string | null

clientSequenceNumber​

The document's client sequence number.

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

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.

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature​

compression?: string;

Type: string

contents​

The contents of the message.

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature​

contents: unknown;

Type: unknown

data​

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

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

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.

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature​

expHash1?: string;

Type: string

metadata​

App provided metadata about the operation.

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature​

metadata?: unknown;

Type: unknown

minimumSequenceNumber​

The minimum sequence number for all connected clients.

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature​

minimumSequenceNumber: number;

Type: number

origin​

Origin branch information for the message.

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

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.

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature​

referenceSequenceNumber: number;

Type: number

sequenceNumber​

The sequenced identifier.

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature​

sequenceNumber: number;

Type: number

serverMetadata​

Server provided metadata about the operation.

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature​

serverMetadata?: unknown;

Type: unknown

timestamp​

Timestamp when the server ticketed the message.

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature​

timestamp: number;

Type: number

traces​

Traces related to the packet.

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature​

traces?: ITrace[];

Type: ITrace[]

type​

The type of operation.

This API is provided for existing users, but is not recommended for new users.

For more information about our API support guarantees, see here.

Signature​

type: string;

Type: string