mirror of
https://github.com/Noratrieb/haesli.git
synced 2026-03-15 06:56:03 +01:00
12 lines
286 B
JavaScript
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');
|