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

0.3.0 • Public • Published

rpc-ws-browser

rpc-stream factory using transport-ws-browser.

Installation

yarn add @mainframe/rpc-ws-browser

Usage

import wsRPC from '@mainframe/rpc-ws-browser'

const rpc = wsRPC('ws://localhost')

rpc.request('getUser', ['1234']).then(console.log)

API

wsRPC()

Arguments

  1. url: string

Returns StreamRPC

License

MIT

Dependencies (3)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @mainframe/rpc-ws-browser

    Weekly Downloads

    1

    Version

    0.3.0

    License

    MIT

    Unpacked Size

    2.48 kB

    Total Files

    6

    Last publish

    Collaborators

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