2026-01-16 13:13:45 +01:00
|
|
|
|
2026-04-16 12:44:31 +02:00
|
|
|
import { startRMQClient } from "#config/eventBus.config.js"
|
2026-02-09 13:24:04 +01:00
|
|
|
import { SimNosController } from "./aplication/SimNOS.controller.js"
|
2026-01-16 13:13:45 +01:00
|
|
|
|
|
|
|
|
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 {}
|