Skip to main content

Module audit

Module audit 

Source
Expand description

Audit subscription methods.

audit_subscribe registers the caller’s connection as a recipient of audit events. The server pushes [AuditNotification] messages to subscribed connections whenever the core audit logger emits an event.

The skeleton returns {"subscribed": true} and relies on the server loop to route notifications to the connection. A real implementation would install a broadcast channel receiver on the daemon-wide audit sink.

Functions§

audit_subscribe
audit_subscribe({}){"subscribed": true}