This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//This is a representation of what would be generated by the generic-event-consumer | |
var rabbit = require('rabbitConnect'); | |
//Data consumer can be anything that depends on a queue - it's just a placeholder. | |
var dataConsumer = require('dataConsumer'); | |
//The dataConsumer will dispatch messages to the change handler functions appropriately. | |
var exchange = rabbit.topic('change.events'); | |
exchange |