mirror of
https://github.com/Noratrieb/haesli.git
synced 2026-01-14 19:55:03 +01:00
queuing things
This commit is contained in:
parent
2fe3b4b77b
commit
770762b920
16 changed files with 102 additions and 13 deletions
|
|
@ -3,7 +3,9 @@ import { connectAmqp } from './utils/utils.js';
|
|||
const connection = await connectAmqp();
|
||||
const channel = await connection.createChannel();
|
||||
|
||||
channel.publish('exchange-1', 'queue-1', Buffer.from('hello'));
|
||||
await channel.assertQueue('send-queue-352');
|
||||
|
||||
channel.publish('', 'send-queue-352', Buffer.from('hello'));
|
||||
|
||||
console.log('Published message');
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue