@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 => {
    // ...
  });

Readme

Keywords

none

Package Sidebar

Install

npm i @onr/cloud-stream

Weekly Downloads

2

Version

2.0.2

License

ISC

Unpacked Size

26.9 kB

Total Files

25

Last publish

Collaborators

  • l443018
  • koshuang