@mainframe/rpc-ws-browser

WebSocket RPC for browser

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
11Mar 10, 2019Apr 10, 2018Minified + gzip package size for @mainframe/rpc-ws-browser in KB

Readme

rpc-ws-browser

rpc-stream factory using transport-ws-browser.

Installation

yarn add @mainframe/rpc-ws-browser

Usage

import wsRPC from '@mainframe/rpc-ws-browser'

const rpc = wsRPC('ws://localhost')

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

API

wsRPC()

Arguments

  1. url: string

Returns StreamRPC

License

MIT

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.