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

transport-ws-browser

WebSocket transport for browser as a RxJS Subject.

Installation

yarn add @erebos/transport-ws-browser

Usage

import wsTransport from '@erebos/transport-ws-browser'

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

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

API

wsTransport()

Arguments

  1. url: string

Returns Rx.Subject<Object>

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 1
Dependencies (2)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2016 © taobao.org |