Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to reconnect rabbitmq when heartbeat timeout? #46

Closed
ganruip opened this issue Sep 25, 2019 · 1 comment
Closed

How to reconnect rabbitmq when heartbeat timeout? #46

ganruip opened this issue Sep 25, 2019 · 1 comment

Comments

@ganruip
Copy link

ganruip commented Sep 25, 2019

How to reconnect rabbitmq when heartbeat timeout?
image

@WonderPanda
Copy link
Collaborator

Hey @ganruip. Currently we provide access to the underlying AMQP connection and channel in our connection abstraction: https://github.com/WonderPanda/nestjs-plus/blob/master/packages/rabbitmq/src/amqp/connection.ts

This allows you to attach appropriate event handlers to the connection, such as the close event where you could put in logic to attempt to reconnect in the case of a heartbeat timeout. If I have some free time I will look at providing an easier way to do this through our library directly but no promises on a timeline right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants