rpc-stream
factory using transport-ws-browser
.
yarn add @erebos/rpc-ws-browser
import wsRPC from '@erebos/rpc-ws-browser'
const rpc = wsRPC('ws://localhost')
rpc.request('getUser', ['1234']).then(console.log)
Arguments
url: string
Returns StreamRPC
MIT