add stats to frontend

This commit is contained in:
marlonerler
2024-07-05 16:49:08 +02:00
parent dd5d1b7e26
commit 65cd27c6f5
7 changed files with 97 additions and 7 deletions
+1 -1
View File
@@ -109,7 +109,7 @@ export function subscribeChannel(server: WS, channel: string): void {
}
// AUDIT
export function audit(): [string, number][] {
export function getStats(): [string, number][] {
return [
["channels", subscriptions.clientsPerChannel.size],
["clients connected", connectedClientCount],