Function default

Main Function

1.0.0

This is the basics on how to use this plugin:

app.register(fastifyRabbit, {
connection: 'amqp://guest:guest@localhost'
})

This will allow you to read from your Fastify "object" and use this plugin at the "rabbitmq" level. From there you can execute and maintain the RabbitMQ Connection using the 'rabbitmq-client' package, which is wrapping around this plugin to execute functions it provides.

https://cody-greene.github.io/node-rabbitmq-client/latest/index.html

  • Parameters

    • instance: FastifyInstance<RawServerDefault, IncomingMessage, ServerResponse<IncomingMessage>, FastifyBaseLogger, FastifyTypeProviderDefault>
    • opts: FastifyRabbitMQOptions
    • done: ((err?: Error) => void)
        • (err?): void
        • Parameters

          • Optionalerr: Error

          Returns void

    Returns void