@mainframe/transport-ws-browser

WebSocket transport for browser

Stats

StarsIssuesVersionUpdatedCreatedSize
@mainframe/transport-ws-browser
110.3.03 years ago4 years agoMinified + gzip package size for @mainframe/transport-ws-browser in KB

Readme

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

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.