diff --git a/index.js b/index.js index b7fe8ce424..18e14a2d22 100644 --- a/index.js +++ b/index.js @@ -477,7 +477,7 @@ RedisClient.prototype.send_command = function () { } }; -RedisClient.prototype.close = function close () { +RedisClient.prototype.end = function () { this.stream._events = {}; return this.stream.end(); };