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

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

Current Tags

  • 0.3.0                                ...           latest (2 years ago)

4 Versions

  • 0.3.0                                ...           2 years ago
  • 0.2.2                                ...           2 years ago
  • 0.2.0                                ...           2 years ago
  • 0.1.0                                ...           3 years ago
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 1
Last Month 1
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2016 © taobao.org |