@univerjs/rpc v0.4.2 • 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
packages/rpc/src/services/remote-instance/remote-instance.service.ts:67 (opens in a new tab)
Properties
Property | Modifier | Type | Defined in |
---|---|---|---|
_commandService | readonly | ICommandService | packages/rpc/src/services/remote-instance/remote-instance.service.ts:69 (opens in a new tab) |
_logService | readonly | ILogService | packages/rpc/src/services/remote-instance/remote-instance.service.ts:70 (opens in a new tab) |
_univerInstanceService | readonly | IUniverInstanceService | packages/rpc/src/services/remote-instance/remote-instance.service.ts:68 (opens in a new tab) |
Methods
_applyMutation()
protected _applyMutation(mutationInfo): boolean
Parameters
Parameter | Type |
---|---|
mutationInfo | IMutationInfo <object > |
Returns
boolean
Defined in
packages/rpc/src/services/remote-instance/remote-instance.service.ts:112 (opens in a new tab)
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
packages/rpc/src/services/remote-instance/remote-instance.service.ts:83 (opens in a new tab)
disposeInstance()
disposeInstance(params): Promise<boolean>
Parameters
Parameter | Type |
---|---|
params | object |
params.unitID | string |
Returns
Promise
<boolean
>
Implementation of
IRemoteInstanceService
.disposeInstance
Defined in
packages/rpc/src/services/remote-instance/remote-instance.service.ts:108 (opens in a new tab)
syncMutation()
syncMutation(params): Promise<boolean>
Parameters
Parameter | Type |
---|---|
params | object |
params.mutationInfo | IMutationInfo <object > |
Returns
Promise
<boolean
>
Implementation of
IRemoteInstanceService
.syncMutation
Defined in
packages/rpc/src/services/remote-instance/remote-instance.service.ts:79 (opens in a new tab)
whenReady()
whenReady(): Promise<true>
Tell other modules if the IRemoteInstanceService
is ready to load files.
Returns
Promise
<true
>
Implementation of
IRemoteInstanceService
.whenReady
Defined in
packages/rpc/src/services/remote-instance/remote-instance.service.ts:75 (opens in a new tab)