Skip to content

Latest commit

 

History

History

transport-ws-node

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

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