@mainframe/transport-ws-node

WebSocket transport for node

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
11Mar 10, 2019Apr 10, 2018Minified + gzip package size for @mainframe/transport-ws-node in KB

Readme

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

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.