We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 128c428 commit e0c2d09Copy full SHA for e0c2d09
lib/DataHandler.ts
@@ -56,9 +56,13 @@ export default class DataHandler {
56
},
57
});
58
59
- redis.stream.on("data", (data) => {
+ redis.stream.prependListener("data", (data) => {
60
parser.execute(data);
61
62
+
63
+ // `prependListener` not switching a stream to flowing mode as `on` does,
64
+ // so we need to do it manually in case if our listener is the first one
65
+ redis.stream.resume();
66
}
67
68
private returnFatalError(err: Error) {
0 commit comments