@univerjsrpcinterfacesIremoteinstanceservice

@univerjs/rpc v0.5.4


Interface: IRemoteInstanceService

Defined in: submodules/univer/packages/rpc/src/services/remote-instance/remote-instance.service.ts:56

Methods

createInstance()

createInstance(params): Promise<boolean>

Defined in: submodules/univer/packages/rpc/src/services/remote-instance/remote-instance.service.ts:61

Parameters

ParameterType
params{ snapshot: IWorkbookData; type: UniverInstanceType; unitID: string; }
params.snapshotIWorkbookData
params.typeUniverInstanceType
params.unitIDstring

Returns

Promise<boolean>


disposeInstance()

disposeInstance(params): Promise<boolean>

Defined in: submodules/univer/packages/rpc/src/services/remote-instance/remote-instance.service.ts:62

Parameters

ParameterType
params{ unitID: string; }
params.unitIDstring

Returns

Promise<boolean>


syncMutation()

syncMutation(params): Promise<boolean>

Defined in: submodules/univer/packages/rpc/src/services/remote-instance/remote-instance.service.ts:63

Parameters

ParameterType
params{ mutationInfo: IMutationInfo; }
params.mutationInfoIMutationInfo

Returns

Promise<boolean>


whenReady()

whenReady(): Promise<true>

Defined in: submodules/univer/packages/rpc/src/services/remote-instance/remote-instance.service.ts:59

Tell other modules if the IRemoteInstanceService is ready to load files.

Returns

Promise<true>