electron-holochain
Holochain Revision: v0.0.115 Nov 10, 2021
Lair Keystore Revision: v0.0.9 Nov 4, 2021
Expects a DNA built with HDK v0.0.115
manage holochain processes during an electron application runtime, using holochain-runner binaries.
import {app} from 'electron'
import initAgent, {
StateSignal,
StatusUpdates,
STATUS_EVENT,
HolochainRunnerOptions,
PathOptions
} from 'electron-holochain'
const runnerOptions: HolochainRunnerOptions = {
dnaPath: 'pathtomydna.dna',
}
const statusEmitter = await initAgent(app, runnerOptions)
statusEmitter.on(STATUS_EVENT, (status: StateSignal) => {
})