Skip to content

jazzy-elks/dummy-sdk

Repository files navigation

A dummy SDK for Feature Flags

Installation

npm install jazzy-elks-dummy-sdk for the package.

Usage

const SDK = require("jazzy-elks-dummy-sdk");
const client = new SDK("http://localhost:3030", "JazzyElksRule");
const eventSourceClient = client.connect(); // makes an active sse connection
console.log(eventSourceClient.get("Hi")); // gets feature

Dev Log 6/30/21 EventSource API does not allow custom headers, need one for "Authentication", could pass in using URL string but loggers might log it. Therefore used a polyfill, that allows for custom headers...

7/5/21 SDK should accept the entire ruleset for updates

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published