@mainframe/transport-ws-node
WebSocket transport for node
Last updated 2 years ago by paul_lecam .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @mainframe/transport-ws-node 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.4.0                                ...           latest (2 years ago)

7 Versions

  • 0.4.0                                ...           2 years ago
  • 0.3.3                                ...           2 years ago
  • 0.3.2                                ...           2 years ago
  • 0.3.1                                ...           2 years ago
  • 0.3.0                                ...           2 years ago
  • 0.2.0                                ...           2 years ago
  • 0.1.0                                ...           3 years ago
Downloads
Today 0
This Week 0
This Month 5
Last Day 0
Last Week 1
Last Month 4
Dependencies (4)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2017 © taobao.org |