Skip to content

Commit

Permalink
fix(connection): don't require parameters for address on open
Browse files Browse the repository at this point in the history
Some potential future user-implemented transport might use an
address that doesn't have a host or port at all (perhaps a named
pipe), so it doesn't make sense for us to require these properties
exist.
  • Loading branch information
mbroadst committed Oct 26, 2016
1 parent 5a7f79f commit 1f7f2a0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/connection.js
Expand Up @@ -316,7 +316,6 @@ Connection.ErrorReceived = 'connection:errorReceived';
* @param sasl If given, contains a "negotiate" method that, given address and a callback, will run through SASL negotiations.
*/
Connection.prototype.open = function(address, sasl) {
u.assertArguments(address, ['protocol', 'host', 'port']);
this.connSM.connect(address, sasl);
};

Expand Down

0 comments on commit 1f7f2a0

Please sign in to comment.