Skip to content

Instantly share code, notes, and snippets.

@mrsid96
Created July 7, 2020 18:21
Show Gist options
  • Save mrsid96/135fa116e8208dc9e35933ed7d140469 to your computer and use it in GitHub Desktop.
Save mrsid96/135fa116e8208dc9e35933ed7d140469 to your computer and use it in GitHub Desktop.
conn.createChannel({
json: true,
setup: function (channel) {
workOnChannel(channel);
}
});
let workOnChannel = async (channel) => {
//The channel here is a regular amqplib `ConfirmChannel`.
//We will perform our operations here.
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment