/fossil-node-client

NodeJS client for the Fossil event store

Primary LanguageTypeScript

Fossil NodeJS client

This is a Node client for the Fossil event store. It does support named consumers and explicit consumer acknowledgments.

Installation

npm i @fossil/node-client

Usage

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);
  });
})();