Skip to content

sroze/fossil-node-client

Repository files navigation

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published