UNPKG

bita.nodejsnotify

Version:

Nodejs notification management micro-service

23 lines (20 loc) 460 B
class Notify{ constructor(){ this.usableChannel = null } //Set Channel channel(_chanelInstance){ return this.usableChannel = _chanelInstance } //Send Message async send(){ let result = this.usableChannel.send() return result } //CheckDelivery async checkDelivery(_data){ let result = this.usableChannel.checkDelivery(_data) return result } } module.exports = Notify