Comparing version 5.4.1 to 5.4.2
@@ -24,5 +24,8 @@ "use strict"; | ||
}); | ||
redis.stream.on("data", (data) => { | ||
// prependListener ensures the parser receives and processes data before socket timeout checks are performed | ||
redis.stream.prependListener("data", (data) => { | ||
parser.execute(data); | ||
}); | ||
// prependListener() doesn't enable flowing mode automatically - we need to resume the stream manually | ||
redis.stream.resume(); | ||
} | ||
@@ -29,0 +32,0 @@ returnFatalError(err) { |
{ | ||
"name": "ioredis", | ||
"version": "5.4.1", | ||
"version": "5.4.2", | ||
"description": "A robust, performance-focused and full-featured Redis client for Node.js.", | ||
@@ -5,0 +5,0 @@ "main": "./built/index.js", |
697960
15158
1