@univerjs/rpc v0.5.0-beta.1 • Docs
Class: WebWorkerRemoteInstanceService
Implements
Constructors
new WebWorkerRemoteInstanceService()
new WebWorkerRemoteInstanceService(
_univerInstanceService,
_commandService,
_logService): WebWorkerRemoteInstanceService
Parameters
Parameter | Type |
---|---|
_univerInstanceService | IUniverInstanceService |
_commandService | ICommandService |
_logService | ILogService |
Returns
WebWorkerRemoteInstanceService
Defined in
submodules/univer/packages/rpc/src/services/remote-instance/remote-instance.service.ts:67
Properties
Property | Modifier | Type | Defined in |
---|---|---|---|
_commandService | readonly | ICommandService | submodules/univer/packages/rpc/src/services/remote-instance/remote-instance.service.ts:69 |
_logService | readonly | ILogService | submodules/univer/packages/rpc/src/services/remote-instance/remote-instance.service.ts:70 |
_univerInstanceService | readonly | IUniverInstanceService | submodules/univer/packages/rpc/src/services/remote-instance/remote-instance.service.ts:68 |
Methods
_applyMutation()
protected _applyMutation(mutationInfo): boolean
Parameters
Parameter | Type |
---|---|
mutationInfo | IMutationInfo <object > |
Returns
boolean
Defined in
submodules/univer/packages/rpc/src/services/remote-instance/remote-instance.service.ts:112
createInstance()
createInstance(params): Promise<boolean>
Parameters
Parameter | Type |
---|---|
params | object |
params.snapshot | IWorkbookData |
params.type | UniverInstanceType |
params.unitID | string |
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
Parameter | Type |
---|---|
params | object |
params.unitID | string |
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
Parameter | Type |
---|---|
params | object |
params.mutationInfo | IMutationInfo <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