@erebos/rpc-ws-node
v0.11.0
Published
WebSocket RPC for node
Downloads
9
Keywords
Readme
rpc-ws-node
rpc-stream
factory using transport-ws-node
.
Installation
yarn add @erebos/rpc-ws-node
Usage
import wsRPC from '@erebos/rpc-ws-node'
const rpc = wsRPC('ws://localhost')
rpc.request('getUser', ['1234']).then(console.log)
API
wsRPC()
Arguments
url: string
Returns StreamRPC
License
MIT