ipc

Methods

(inner) createClient(uri, tag) → {IPCClient}

Create remote IPC service client

Parameters:
Name Type Description
uri string

Remote application service location

tag string

Remote application service descriptor

Source:
Example
vault.ipc.createClient('https://my.dev.zippie.org', 'wallet')
  .then(async wallet => {
    console.info('Read Accounts:', await wallet.getAccounts())
  })

(inner) createService(tag) → {IPCService}

Create local IPC service

Parameters:
Name Type Description
tag string

Remote application service descriptor

Source:
Example
vault.ipc.createService('wallet')
  .then(ipc => {
    ipc.addReceiver(function sayHello (name) { return "Hello, " + name })
    ipc.ready()
  })