@onr/cloud-stream
TypeScript icon, indicating that this package has built-in type declarations

2.0.2 • Public • Published

@onr/cloud-stream

Usage

Example with Pusher

import { CloudStream } from 'onr/cloud-stream';

const cloudStream = CloudStream.connect('pusher', {
  channel: 'myChannel',
  config: {
    appKey: 'test',
    cluster: 'test',
  },
});

cloudStream.getDefaultChannel()
  .bind('event1', event => {
    // ...
  })
  .bind('event2', event => {
    // ...
  });

/@onr/cloud-stream/

    Package Sidebar

    Install

    npm i @onr/cloud-stream

    Weekly Downloads

    18

    Version

    2.0.2

    License

    ISC

    Unpacked Size

    26.9 kB

    Total Files

    25

    Last publish

    Collaborators

    • l443018
    • koshuang