Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

@erebos/transport-ws-browser

0.10.0 • Public • Published

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

Keywords

none

Install

npm i @erebos/transport-ws-browser

DownloadsWeekly Downloads

25

Version

0.10.0

License

MIT

Unpacked Size

1.99 kB

Total Files

5

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar