Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

Reconnect with different credentials #88

Open
sysrun opened this issue Nov 3, 2018 · 1 comment
Open

Reconnect with different credentials #88

sysrun opened this issue Nov 3, 2018 · 1 comment

Comments

@sysrun
Copy link

sysrun commented Nov 3, 2018

Hi,

i'd like to know if it's possible to reconnect or disconnect the current remit instance.

Our plan is to connect to the amqp via some default credentials, call a register route and the fetch the unique amqp credentials for the microservice. After the registration the service has to reconnect with the new credentials.

@jpwilliams
Copy link
Owner

Sorry, @sysrun. My eye hasn't been on this for a long while.

Remit itself could do with a single global .disconnect() method which shuts everything down. If that's available, you get then shut one connection down and boot up another instance with your new credentials.

I'll look in to what's needed for this. PRs welcome too! ;)

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

No branches or pull requests

2 participants