@ethora/chat-component
Version:
1. npm create vite@latest 2. select name of project, select type (react/js) 3. cd project-name 4. npm i 5. npm i @ethora/chat-component 6. go to file src/App.tsx and replace it with this code
17 lines (16 loc) • 527 B
TypeScript
export declare class XmppMemoryMonitor {
private static monitoringInterval;
private static warningThreshold;
private static criticalThreshold;
static startMonitoring(intervalMs?: number): void;
static stopMonitoring(): void;
static setThresholds(warning: number, critical: number): void;
static getCurrentCount(): number;
static forceCleanup(): void;
static getListenerInfo(): Array<{
key: string;
eventType: string;
timestamp: number;
age: number;
}>;
}