Skip to main content

IDocumentDeltaStorageService Interface

Interface to provide access to stored deltas for a shared object

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 IDocumentDeltaStorageService

Methods

MethodAlertsReturn TypeDescription
fetchMessages(from, to, abortSignal, cachedOnly, fetchReason)BetaIStream<ISequencedDocumentMessage[]>Retrieves all the delta operations within the exclusive sequence number range

Method Details

fetchMessages

Retrieves all the delta operations within the exclusive sequence number range

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

fetchMessages(from: number, to: number | undefined, abortSignal?: AbortSignal, cachedOnly?: boolean, fetchReason?: string): IStream<ISequencedDocumentMessage[]>;

Parameters

ParameterModifiersTypeDescription
fromnumberfirst op to retrieve (inclusive)
tonumber | undefinedfirst op not to retrieve (exclusive end)
abortSignaloptionalAbortSignalsignal that aborts operation
cachedOnlyoptionalbooleanreturn only cached ops, i.e. ops available locally on client.
fetchReasonoptionalstringReason for fetching the messages, for logging. Example, gap between seq number of Op on wire and known seq number. It can be logged by spo which could help in debugging sessions if any issue occurs.

Returns

Return type: IStream<ISequencedDocumentMessage[]>