RPC client for Electron
Purpose
StreamRPC
factory using the Electron transport.
Installation
npm install @erebos/rpc-electron
Usage
import { createRPC } from '@erebos/rpc-electron'
const rpc = createRPC('optional-channel-name')
rpc.request('getUser', ['1234']).then(res => {
console.log(res)
})
API
createRPC()
Arguments
channel?: ?string
, defaults torpc-message
Returns StreamRPC