Docs y prueba de concepto de colas por empresa

This commit is contained in:
2026-01-16 13:13:45 +01:00
parent b29348b88d
commit 51cfae7572
19 changed files with 358 additions and 1 deletions

View File

@@ -0,0 +1,22 @@
import { startRMQClient } from "#config/eventBusConfig"
import { SimNosController } from "aplication/SimNOS.controller"
async function startWorker() {
const rmqClient = await startRMQClient()
const simController = new SimNosController(
rmqClient
)
rmqClient.consume("sim.nos", simController.recibeMsg)
}
startWorker()
.then(e => {
console.log("[o] Worker de SIM de NOS iniciado")
})
.catch(e => {
console.log("[x] Error iniciando worker de SIM de NOS")
})
export default {}