Skip to main content
Version: v1

MockContainerRuntimeForReconnection Class

Specalized implementation of MockContainerRuntime for testing ops during reconnection.

Signature​

export declare class MockContainerRuntimeForReconnection extends MockContainerRuntime

Extends: MockContainerRuntime

Constructors​

ConstructorDescription
(constructor)(dataStoreRuntime, factory)Constructs a new instance of the MockContainerRuntimeForReconnection class

Properties​

PropertyTypeDescription
connectedboolean

Methods​

MethodReturn TypeDescription
process(message)void
submit(messageContent, localOpMetadata)number

Constructor Details​

(constructor)​

Constructs a new instance of the MockContainerRuntimeForReconnection class

Signature​

constructor(dataStoreRuntime: MockFluidDataStoreRuntime, factory: MockContainerRuntimeFactoryForReconnection);

Parameters​

ParameterTypeDescription
dataStoreRuntimeMockFluidDataStoreRuntime
factoryMockContainerRuntimeFactoryForReconnection

Property Details​

connected​

Signature​

get connected(): boolean;

set connected(connected: boolean);

Type: boolean

Method Details​

process​

Signature​

process(message: ISequencedDocumentMessage): void;

Parameters​

ParameterTypeDescription
messageISequencedDocumentMessage

submit​

Signature​

submit(messageContent: any, localOpMetadata: unknown): number;

Parameters​

ParameterTypeDescription
messageContentany
localOpMetadataunknown

Returns​

Return type: number