@mainframe/rpc-ws-browser

WebSocket RPC for browser

Stats

StarsIssuesVersionUpdatedCreatedSize
@mainframe/rpc-ws-browser
110.3.03 years ago3 years agoMinified + 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.