This is a Node client for the Fossil event store. It does support named consumers and explicit consumer acknowledgments.
npm i @fossil/node-client
import Client from "@fossil/node-client";
(async () => {
const client = new Client({
baseUrl: 'https://fossil.your-company.com',
consumerName: 'foo',
});
await client.consume("prefix/*", async event => {
// Do what you need to do with the event...
console.log(event);
});
})();