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

0.2.0 • Public • Published

rpc-http-browser

rpc-request factory using transport-http-browser.

Installation

yarn add @mainframe/rpc-http-browser

Usage

import httpRPC from '@mainframe/rpc-http-browser'

const rpc = httpRPC('http://localhost')

rpc.request('getUser', ['1234']).then(console.log)

API

httpRPC()

Arguments

  1. url: string

Returns RequestRPC

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @mainframe/rpc-http-browser

Weekly Downloads

5

Version

0.2.0

License

MIT

Unpacked Size

2.33 kB

Total Files

6

Last publish

Collaborators

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