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