@mainframe/rpc-electron
v0.2.0
Published
Electron RPC client
Downloads
7
Keywords
Readme
rpc-electron
rpc-stream
factory using transport-electron
.
Installation
yarn add @mainframe/rpc-electron
Usage
import electronRPC from '@mainframe/rpc-electron'
const rpc = electronRPC('optional-channel-name')
rpc.request('getUser', ['1234']).then(console.log)
API
electronRPC()
Arguments
channel?: ?string
, defaults torpc-message
Returns StreamRPC
License
MIT