@univerjs/rpc v0.4.2 • Docs
Interface: IRemoteInstanceService
Methods
createInstance()
createInstance(params): Promise<boolean>
Parameters
Parameter | Type |
---|---|
params | object |
params.snapshot | IWorkbookData |
params.type | UniverInstanceType |
params.unitID | string |
Returns
Promise
<boolean
>
Defined in
packages/rpc/src/services/remote-instance/remote-instance.service.ts:61 (opens in a new tab)
disposeInstance()
disposeInstance(params): Promise<boolean>
Parameters
Parameter | Type |
---|---|
params | object |
params.unitID | string |
Returns
Promise
<boolean
>
Defined in
packages/rpc/src/services/remote-instance/remote-instance.service.ts:62 (opens in a new tab)
syncMutation()
syncMutation(params): Promise<boolean>
Parameters
Parameter | Type |
---|---|
params | object |
params.mutationInfo | IMutationInfo <object > |
Returns
Promise
<boolean
>
Defined in
packages/rpc/src/services/remote-instance/remote-instance.service.ts:63 (opens in a new tab)
whenReady()
whenReady(): Promise<true>
Tell other modules if the IRemoteInstanceService
is ready to load files.
Returns
Promise
<true
>
Defined in
packages/rpc/src/services/remote-instance/remote-instance.service.ts:59 (opens in a new tab)