@mainframe/rpc-http-browser

HTTP RPC for browser

Usage no npm install needed!

<script type="module">
  import mainframeRpcHttpBrowser from 'https://cdn.skypack.dev/@mainframe/rpc-http-browser';
</script>

README

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