@onr/cloud-stream
v2.0.2
Published
A module to receive push notifications
Downloads
4
Readme
@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 => {
// ...
});