snippets_js
New AMQP listener using a credential
const listener = yepcode.listener.amqp("my-amqp-queue");
listener.start((message) => {
console.log(`New message received`, message.content.toString());
})
const listener = yepcode.listener.amqp("my-amqp-queue");
listener.start((message) => {
console.log(`New message received`, message.content.toString());
})