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

transport-ws-node

WebSocket transport for node as a RxJS Subject.

Installation

yarn add @erebos/transport-ws-node

Usage

import wsTransport from '@erebos/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.10.0                                ...           latest (a year ago)

1 Versions

  • 0.10.0                                ...           a year ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (1)
Dependents (1)

Copyright 2014 - 2017 © taobao.org |