@lvce-editor/ipc
v12.2.0
Published
Inter Process Communication for Lvce Editor
Downloads
19,861
Readme
Lvce Editor Ipc
Inter Process Communiction for use in Lvce Editor.
Usage
import { IpcParentWithElectronUtilityProcess } from '@lvce-editor/ipc'
const rawIpc = await IpcParentWithElectronUtilityProcess.create({
path: '/test/utility-process.js',
})
const ipc = IpcParentWithElectronUtilityProcess.wrap(rawIpc)
ipc.send({
jsonrpc: '2.0',
method: 'readFile',
params: ['/test/file.txt'],
})