diff --git a/lib/thrift/connection.js b/lib/thrift/connection.js index f7a33a7..5c520f7 100644 --- a/lib/thrift/connection.js +++ b/lib/thrift/connection.js @@ -98,6 +98,10 @@ Connection.prototype.end = function() { this.connection.end(); } +Connection.prototype.destroy = function() { + this.connection.destroy(); +} + Connection.prototype.write = function(data) { if (!this.connected) { this.offline_queue.push(data);