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
2.0.2 • Public • PublishedReadme
Keywords
nonePackage Sidebar
Install
npm i @onr/cloud-stream
Repository
Weekly Downloads
2
Version
2.0.2
License
ISC
Unpacked Size
26.9 kB
Total Files
25