@univerjsrpcclassesWebworkerremoteinstanceservice

@univerjs/rpc v0.5.0-beta.1Docs


Class: WebWorkerRemoteInstanceService

Implements

Constructors

new WebWorkerRemoteInstanceService()

new WebWorkerRemoteInstanceService(
   _univerInstanceService, 
   _commandService, 
   _logService): WebWorkerRemoteInstanceService

Parameters

ParameterType
_univerInstanceServiceIUniverInstanceService
_commandServiceICommandService
_logServiceILogService

Returns

WebWorkerRemoteInstanceService

Defined in

submodules/univer/packages/rpc/src/services/remote-instance/remote-instance.service.ts:67

Properties

PropertyModifierTypeDefined in
_commandServicereadonlyICommandServicesubmodules/univer/packages/rpc/src/services/remote-instance/remote-instance.service.ts:69
_logServicereadonlyILogServicesubmodules/univer/packages/rpc/src/services/remote-instance/remote-instance.service.ts:70
_univerInstanceServicereadonlyIUniverInstanceServicesubmodules/univer/packages/rpc/src/services/remote-instance/remote-instance.service.ts:68

Methods

_applyMutation()

protected _applyMutation(mutationInfo): boolean

Parameters

ParameterType
mutationInfoIMutationInfo<object>

Returns

boolean

Defined in

submodules/univer/packages/rpc/src/services/remote-instance/remote-instance.service.ts:112


createInstance()

createInstance(params): Promise<boolean>

Parameters

ParameterType
paramsobject
params.snapshotIWorkbookData
params.typeUniverInstanceType
params.unitIDstring

Returns

Promise<boolean>

Implementation of

IRemoteInstanceService.createInstance

Defined in

submodules/univer/packages/rpc/src/services/remote-instance/remote-instance.service.ts:83


disposeInstance()

disposeInstance(params): Promise<boolean>

Parameters

ParameterType
paramsobject
params.unitIDstring

Returns

Promise<boolean>

Implementation of

IRemoteInstanceService.disposeInstance

Defined in

submodules/univer/packages/rpc/src/services/remote-instance/remote-instance.service.ts:108


syncMutation()

syncMutation(params): Promise<boolean>

Parameters

ParameterType
paramsobject
params.mutationInfoIMutationInfo<object>

Returns

Promise<boolean>

Implementation of

IRemoteInstanceService.syncMutation

Defined in

submodules/univer/packages/rpc/src/services/remote-instance/remote-instance.service.ts:79


whenReady()

whenReady(): Promise<true>

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

Returns

Promise<true>

Implementation of

IRemoteInstanceService.whenReady

Defined in

submodules/univer/packages/rpc/src/services/remote-instance/remote-instance.service.ts:75