Skip to content

Commit

Permalink
[CONJS-40] add alias connection.close for connection.destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
rusher committed Oct 8, 2018
1 parent da6cbd0 commit f5b06c1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/connection.js
Expand Up @@ -246,6 +246,13 @@ function Connection(options) {
return Promise.resolve();
};

/**
* Alias for destroy.
*/
this.close = function() {
this.destroy();
};

/**
* Force connection termination by closing the underlying socket and killing server process if any.
*/
Expand Down

0 comments on commit f5b06c1

Please sign in to comment.