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

Reconnection Issue #102

Closed
ghost opened this issue Oct 13, 2014 · 4 comments
Closed

Reconnection Issue #102

ghost opened this issue Oct 13, 2014 · 4 comments

Comments

@ghost
Copy link

ghost commented Oct 13, 2014

Hello,
I am using this library but not able to find any re-connection method for interrupted connection.

@zweifisch
Copy link
Contributor

you can listen for the error event dispatched by the connction, and then reconnect

@ghost
Copy link
Author

ghost commented Oct 14, 2014

ya on Error Event but there is no method called reconnect() like we have in amqp module.

@squaremo
Copy link
Collaborator

@hiteshbal91 Indeed there is not -- see #25 for the discussion about reconnection. In brief: I am very wary of attempting anything magical.

In the absence of #reconnect, and auto-reconnection, I suggest making a procedure which connects and sets up all your exchanges and queues, and simply calling that whenever you need to reconnect. Or letting your process crash, and restarting it from the outside.

@squaremo
Copy link
Collaborator

(please feel free to add your voice to the discussion in #25, of course)

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