sroze / fossil-node-client

NodeJS client for the Fossil event store

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

NodeJS client for the Fossil event store


Languages

Language:TypeScript 100.0%