mirror of
https://git.undefined-dev.fr/Blendman974/faceclaw.git
synced 2026-11-19 21:03:09 +00:00
11 lines
418 B
TypeScript
11 lines
418 B
TypeScript
declare const FaceclawKitConnectionCounters: any
|
|
|
|
export function drainConnectionCounters(): Record<string, number> {
|
|
const counts: Record<string, number> = {}
|
|
const parsed = JSON.parse(String(FaceclawKitConnectionCounters.shared.drain())) as Record<string, unknown>
|
|
for (const [name, count] of Object.entries(parsed)) {
|
|
if (typeof count === 'number' && count > 0) counts[name] = count
|
|
}
|
|
return counts
|
|
}
|