unleash-server
Version:
Unleash is an enterprise ready feature flag service. It provides different strategies for handling feature flags.
22 lines • 814 B
TypeScript
import type { IUnleashConfig } from '../../types/option.js';
import type { IUnleashStores } from '../../types/index.js';
export declare class UniqueConnectionService {
private uniqueConnectionStore;
private flagResolver;
private eventBus;
private activeHour;
private hll;
private backendHll;
private frontendHll;
constructor({ uniqueConnectionStore, }: Pick<IUnleashStores, 'uniqueConnectionStore'>, config: Pick<IUnleashConfig, 'getLogger' | 'flagResolver' | 'eventBus'>);
listen(): void;
count({ connectionId, type, }: {
connectionId: string;
type: 'frontend' | 'backend';
}): void;
sync(currentTime?: Date): Promise<void>;
private resetHll;
private getHll;
private syncBuckets;
}
//# sourceMappingURL=unique-connection-service.d.ts.map