@mainframe/rpc-ws-node
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @mainframe/rpc-ws-node

Weekly Downloads

3

Version

0.3.0

License

MIT

Unpacked Size

2.13 kB

Total Files

5

Last publish

Collaborators

  • aclarke
  • diogoperillo
  • howleysv
  • mosic
  • paul_lecam
  • sarahwiley