Skip to main content
Version: v2

IDocumentMessage Interface

Document-specific message.

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

To use, import via @fluidframework/driver-definitions/legacy.

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

Signature​

export interface IDocumentMessage

Properties​

PropertyAlertsModifiersTypeDescription
clientSequenceNumberBetanumberThe document's client sequence number.
compressionBetaoptionalstringThe compression algorithm that was used to compress contents of this message. Not ready for use
contentsBetaunknownThe contents of the message.
metadataBetaoptionalunknownApp provided metadata about the operation.
referenceSequenceNumberBetanumberThe reference sequence number the message was sent relative to.
serverMetadataBetaoptionalunknownServer provided metadata about the operation.
tracesBetaoptionalITrace[]Traces related to the packet.
typeBetastringThe type of document message being sent.

Property Details​

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. Not ready for use

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

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

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

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

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 document message being sent.

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