primer cambio

This commit is contained in:
beseira13
2026-01-19 12:12:38 -03:00
parent 5f59dba52d
commit 44990f015a
4759 changed files with 588702 additions and 0 deletions

21
node_modules/amqplib/examples/waitForConfirms.js generated vendored Normal file
View File

@@ -0,0 +1,21 @@
const amqp = require('../');
(async () => {
let connection;
try {
connection = await amqp.connect();
const channel = await connection.createConfirmChannel();
for (var i=0; i < 20; i++) {
channel.publish('amq.topic', 'whatever', Buffer.from('blah'));
};
await channel.waitForConfirms();
console.log('All messages done');
await channel.close();
} catch (err) {
console.warn(err);
} finally {
if (connection) await connection.close();
}
})();