Skip to content

Commit 5a56d0f

Browse files
committed
client::close method
1 parent 743eb00 commit 5a56d0f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,11 @@ RedisClient.prototype.send_command = function () {
477477
}
478478
};
479479

480+
RedisClient.prototype.close = function close () {
481+
this.stream._events = {};
482+
return this.stream.end();
483+
};
484+
480485
// http://code.google.com/p/redis/wiki/CommandReference
481486
exports.commands = [
482487
// Commands operating on all value types

0 commit comments

Comments
 (0)