@mainframe/rpc-http-node
v0.2.0
Published
HTTP RPC for node
Downloads
5
Keywords
Readme
rpc-http-node
rpc-request
factory using transport-http-node
.
Installation
yarn add @mainframe/rpc-http-node
Usage
import httpRPC from '@mainframe/rpc-http-node'
const rpc = httpRPC('http://localhost')
rpc.request('getUser', ['1234']).then(console.log)
API
httpRPC()
Arguments
url: string
Returns RequestRPC
License
MIT