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

0.4.0 • Public • Published

transport-ws-node

WebSocket transport for node as a RxJS Subject.

Installation

yarn add @mainframe/transport-ws-node

Usage

import wsTransport from '@mainframe/transport-ws-node'

const transport = wsTransport('ws://localhost')

transport.subcribe(console.log)
transport.next({ hello: 'transport' })

API

wsTransport()

Arguments

  1. url: string

Returns Rx.Subject<T = any>

License

MIT

Dependencies (4)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @mainframe/transport-ws-node

    Weekly Downloads

    0

    Version

    0.4.0

    License

    MIT

    Unpacked Size

    2.31 kB

    Total Files

    5

    Last publish

    Collaborators

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