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

1.1.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

3

Version

1.1.2

License

ISC

Unpacked Size

65.8 kB

Total Files

201

Last publish

Collaborators

  • l443018
  • koshuang