@mainframe/rpc-ws-node

WebSocket RPC for node

Stats

StarsIssuesVersionUpdatedCreatedSize
@mainframe/rpc-ws-node
110.3.03 years ago3 years agoMinified + gzip package size for @mainframe/rpc-ws-node in KB

Readme

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

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.