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

rpc-ws-node

rpc-stream factory using transport-ws-node.

Installation

yarn add @mainframe/rpc-ws-node

Usage

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

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)

5 Versions

  • 0.3.0                                ...           2 years ago
  • 0.2.3                                ...           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 1
Last Day 0
Last Week 0
Last Month 4
Dependencies (3)
Dev Dependencies (0)
None

Copyright 2014 - 2017 © taobao.org |