Skip to main content
Version: v1

IDocumentDeltaStorageService Interface

Interface to provide access to stored deltas for a shared object

Signature

export interface IDocumentDeltaStorageService

Methods

MethodReturn TypeDescription
fetchMessages(from, to, abortSignal, cachedOnly, fetchReason)IStream<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

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. Example, gap between seq number of Op on wire and known seq number. It should not contain any PII. It can be logged by spo which could help in debugging sessions if any issue occurs.

Returns

Return type: IStream<ISequencedDocumentMessage[]>