haesli/test-js/src/open-channel.js
2022-03-06 16:31:22 +01:00

12 lines
286 B
JavaScript

import { connectAmqp } from './utils/utils.js';
const connection = await connectAmqp();
const channel = await connection.createChannel();
console.log('Successfully opened channel');
await channel.close();
await connection.close();
console.log('Successfully shut down connection');