MassTransit-JS
MassTransit-JS copied to clipboard
Does this lib in any way support user/password to Rabbitmq?
Is there any way to get user+password to connect? From what I can see, RabbitMqHostAddress does not include them and there is no way to enter a connection string. Is a PR required for this to be added?
hey did you find a way to do it @petternordlanderhelo ?
I used the following successfully:
const username = "<rabbitmq_username>";
const password = "<rabbitmq_password>";
const connectionString = `${username}:${password}@localhost`;
const options: HostSettings = {host: connectionString, virtualHost: "/", port: 5672};
const bus = require("masstransit-rabbitmq").default(options);
// .... rest of your code here
@willemsevenster will try!