@mainframe/rpc-electron

Electron RPC client

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@mainframe/rpc-electron
110.2.04 years ago4 years agoMinified + gzip package size for @mainframe/rpc-electron in KB

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
  1. channel?: ?string, defaults to rpc-message

Returns StreamRPC

License

MIT