WebSocket transport for node as a RxJS Subject
.
yarn add @erebos/transport-ws-node
import wsTransport from '@erebos/transport-ws-node'
const transport = wsTransport('ws://localhost')
transport.subcribe(console.log)
transport.next({ hello: 'transport' })
Arguments
url: string
Returns Rx.Subject<T = any>
MIT