@erebos/transport-ws-node
TypeScript icon, indicating that this package has built-in type declarations

0.10.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @erebos/transport-ws-node

Weekly Downloads

1

Version

0.10.0

License

MIT

Unpacked Size

1.93 kB

Total Files

4

Last publish

Collaborators

  • sarahwiley
  • mosic
  • howleysv
  • aclarke
  • diogoperillo
  • paul_lecam