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

Separation of rabbot instances #172

Open
OSN64 opened this issue Aug 13, 2018 · 0 comments
Open

Separation of rabbot instances #172

OSN64 opened this issue Aug 13, 2018 · 0 comments

Comments

@OSN64
Copy link

OSN64 commented Aug 13, 2018

Rabbot seems to only use one client/connection per application instance.
When the module is required multiple times, each instance cant be configured to a separate server.
They all use the same server, even after .configure has been called.

An example of this.

const rabbot_1 = require('rabbot');
const rabbot_2 = require('rabbot');

rabbot_1.configure({server1});
rabbot_2.configure({server2});


rabbot_2.publish({'ex.1', { type: 'MyMessage', body: 'hello!' }); // pushes message to server 1
rabbot_2.shutdown(); // closes the connection to server 1
@OSN64 OSN64 changed the title Separation of rabbot instances. Separation of rabbot instances Aug 17, 2018
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

1 participant