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

0.11.0 • Public • Published

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

  1. url: string

Returns StreamRPC

License

MIT

/@erebos/rpc-ws-node/

    Package Sidebar

    Install

    npm i @erebos/rpc-ws-node

    Weekly Downloads

    2

    Version

    0.11.0

    License

    MIT

    Unpacked Size

    1.65 kB

    Total Files

    4

    Last publish

    Collaborators

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