I am trying to read all the events in my EventStore. Here is how I am trying to accomplish this
connection.readAllEventsForward(
-1,
-1,
1000000,
false,
false,
e => console.log(“EVENT”, e),
credentials,
() => console.log(“All events read”)
);
I always get to the “All events read” message, but nothing happens for each event in the store. I am positive there are events in the store, so something should come out. Is this being processed incorrectly with the function logging out the events? What am I doing wrong?