addded notification
This commit is contained in:
Vendored
+16
@@ -0,0 +1,16 @@
|
||||
class SubscribePusher {
|
||||
constructor(subscribe, event, apikey) {
|
||||
this.subscribe = subscribe;
|
||||
this.event = event;
|
||||
this.apikey = apikey;
|
||||
}
|
||||
|
||||
channel_subscribe() {
|
||||
let channel = pusher.subscribe(this.subscribe);
|
||||
channel.bind(this.event, function(data){
|
||||
callback(data);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
export default SubscribePusher;
|
||||
Reference in New Issue
Block a user