The program run fines when I have the following configuration:
let events = eventstoreClient.readStream(
streamName,
{
fromRevision: END,
direction: BACKWARDS,
maxCount: 20
}
);
However, the program stucks(i.e. could not read the streams/events further) when maxCount is set to 100 or 1000 or maxCount option is not supplied!