@erebos/rpc-ws-browser
WebSocket RPC for browser
Last updated a year ago by paul_lecam .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @erebos/rpc-ws-browser 
SYNC missed versions from official npm registry.

rpc-ws-browser

rpc-stream factory using transport-ws-browser.

Installation

yarn add @erebos/rpc-ws-browser

Usage

import wsRPC from '@erebos/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

Current Tags

  • 0.11.0                                ...           latest (a year ago)

2 Versions

  • 0.11.0                                ...           a year ago
  • 0.10.0                                ...           a year ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 3
Dependencies (3)
Dev Dependencies (0)
None

Copyright 2014 - 2016 © taobao.org |