Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

Add support for amqplib #156

Merged
merged 7 commits into from
Sep 13, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix (url): correct url for amqp broker
  • Loading branch information
phucpnt committed Sep 8, 2016
commit bc6a2d0f0825422ef111738ceaa335546c53f05a
6 changes: 3 additions & 3 deletions lib/amqplib_ascoltatore.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ AMQPLibAscoltatore.prototype._startConn = function () {

if (this._client_conn === undefined) {

var clientOpts = this._opts.client;
var url = ['amqp://' , clientOpts.login, ':', clientOpts.password, '@', clientOpts.host, ':', clientOpts.port].join('');
var url = this._opts.url || 'amqp://127.0.0.1:5672';

var socketOptions = this._opts.socketOptions || {};

debug("connecting to " + this._opts.client);
debug("connecting to " + this._opts.url);

steed.series([
function (callback) {
Expand Down