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

transport-ws-browser

WebSocket transport for browser as a RxJS Subject.

Installation

yarn add @mainframe/transport-ws-browser

Usage

import wsTransport from '@mainframe/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.3.0                                ...           latest (2 years ago)

5 Versions

  • 0.3.0                                ...           2 years ago
  • 0.2.2                                ...           2 years ago
  • 0.2.1                                ...           2 years ago
  • 0.2.0                                ...           2 years ago
  • 0.1.0                                ...           3 years ago
Downloads
Today 0
This Week 2
This Month 2
Last Day 1
Last Week 0
Last Month 3
Dependencies (2)
Dev Dependencies (0)
None
Dependents (1)

Copyright 2014 - 2016 © taobao.org |