@mainframe/rpc-http-node
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

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

  1. url: string

Returns RequestRPC

License

MIT

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @mainframe/rpc-http-node

    Weekly Downloads

    1

    Version

    0.2.0

    License

    MIT

    Unpacked Size

    1.89 kB

    Total Files

    5

    Last publish

    Collaborators

    • aclarke
    • diogoperillo
    • howleysv
    • mosic
    • paul_lecam
    • sarahwiley