Initial project structure

This commit is contained in:
2026-07-20 16:44:23 +02:00
commit c19fde4126
27 changed files with 4679 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
import * as amqp from "amqplib";
export class CommandService {
constructor(
private channel: amqp.Channel
){}
async send(
queue:string,
command:any
){
await this.channel.sendToQueue(
queue,
Buffer.from(
JSON.stringify(command)
)
);
console.log(
"Command gesendet:",
command
);
}
}