@mainframe/rpc-ws-node
v0.3.0
Published
WebSocket RPC for node
Downloads
9
Keywords
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
url: string
Returns StreamRPC
License
MIT