A DeliveryCommentarySink whose real target is installed later. The WS dispatcher is created before the audit DB opens (IP-21); the server hands it this forwarding sink and calls LateBoundCommentarySink.bind once the audit-writing sink exists. Decisions emitted before binding are dropped — the dispatcher only sanitizes once it is live (after start(), by which point the audit DB, if configured, has opened and bound).
Called once per applied decision. Implementations should be non-throwing; the sanitizer wraps the call in try/catch so a misbehaving sink never blocks the wire.
Graphorin API reference v0.4.0
Graphorin API reference / @graphorin/server / commentary / LateBoundCommentarySink
Interface: LateBoundCommentarySink
Defined in: packages/server/src/commentary/audit-bridge.ts:111
A DeliveryCommentarySink whose real target is installed later. The WS dispatcher is created before the audit DB opens (IP-21); the server hands it this forwarding sink and calls LateBoundCommentarySink.bind once the audit-writing sink exists. Decisions emitted before binding are dropped — the dispatcher only sanitizes once it is live (after
start(), by which point the audit DB, if configured, has opened and bound).Stable
Extends
DeliveryCommentarySinkMethods
bind()
Defined in: packages/server/src/commentary/audit-bridge.ts:113
Install the real sink. Replaces any previously-bound target.
Parameters
targetDeliveryCommentarySinkReturns
voidonDecision()
Defined in: packages/server/src/commentary/types.ts:106
Called once per applied decision. Implementations should be non-throwing; the sanitizer wraps the call in
try/catchso a misbehaving sink never blocks the wire.Parameters
decisionDeliveryCommentaryDecisionReturns
voidInherited from
DeliveryCommentarySink.onDecision