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

    0.3.0 • Public • Published

    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

    Keywords

    none

    Install

    npm i @mainframe/transport-ws-browser

    DownloadsWeekly Downloads

    6

    Version

    0.3.0

    License

    MIT

    Unpacked Size

    2.2 kB

    Total Files

    6

    Last publish

    Collaborators

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