diff --git a/lib/client.js b/lib/client.js index b711e80..f033eae 100644 --- a/lib/client.js +++ b/lib/client.js @@ -81,6 +81,11 @@ Client.prototype.start = function() { } }; +Client.prototype.close = function(){ + var self = this; + self._client.destroy(); +} + Client.prototype.send = function(msg, end, cb) { if (typeof end === 'function') { cb = end;