Skip to content

Commit d590733

Browse files
committed
Merge branch 'pr83'
2 parents eb59e52 + 075cd72 commit d590733

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
var sockets = require('./lib/sockets');
22

33
module.exports = sockets;
4-
module.exports.createContext = function(url) {
5-
return new sockets.Context(url);
4+
module.exports.createContext = function(url, connOpts) {
5+
return new sockets.Context(url, connOpts);
66
}

lib/sockets.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ function errorLater(obj) {
3333
function ignore() {} // for stubbing out methods I don't care about;
3434
// i.e., _read
3535

36-
function Context(url) {
36+
function Context(url, connOpts) {
3737
EventEmitter.call(this);
3838
var self = this;
3939
var onError = errorLater(this);
40-
var c = this._connection = amqp.connect(url);
40+
var c = this._connection = amqp.connect(url, connOpts);
4141
c.then(function(conn) {
4242
conn.on('error', onError);
4343
['close', 'blocked', 'unblocked'].forEach(function(ev) {

0 commit comments

Comments
 (0)