UNPKG

donkey

Version:

EIP for JavaScript, node style

15 lines (10 loc) 389 B
var util = require(process.binding('natives').util ? 'util' : 'sys'); var Producer = require('../Producer'); var DirectProducer = module.exports = function DirectProducer(options){ Producer.call(this,options); this.emit('ready'); }; util.inherits(DirectProducer, Producer); DirectProducer.prototype.process = function(exchange){ this.endpoint.consumer.process(exchange); }