Packages > @fluidframework/protocol-definitions > IDocumentMessage

IDocumentMessage Interface

Document-specific message.

Signature

export interface IDocumentMessage

Properties

Property Modifiers Type Description
clientSequenceNumber number The document's client sequence number.
compression optional string The compression algorithm that was used to compress contents of this message. Not ready for use
contents unknown The contents of the message.
metadata optional unknown App provided metadata about the operation.
referenceSequenceNumber number The reference sequence number the message was sent relative to.
serverMetadata optional unknown Server provided metadata about the operation.
traces optional ITrace[] Traces related to the packet.
type string The type of document message being sent.

Property Details

clientSequenceNumber

The document’s client sequence number.

Signature

clientSequenceNumber: number;

compression

The compression algorithm that was used to compress contents of this message. Not ready for use

Signature

compression?: string;

contents

The contents of the message.

Signature

contents: unknown;

metadata

App provided metadata about the operation.

Signature

metadata?: unknown;

referenceSequenceNumber

The reference sequence number the message was sent relative to.

Signature

referenceSequenceNumber: number;

serverMetadata

Server provided metadata about the operation.

Signature

serverMetadata?: unknown;

traces

Traces related to the packet.

Signature

traces?: ITrace[];

type

The type of document message being sent.

Signature

type: string;