Skip to content

Graphorin API reference v0.15.1


Graphorin API reference / @graphorin/server / commentary / LateBoundCommentarySink

Interface: LateBoundCommentarySink ​

Defined in: packages/server/src/commentary/audit-bridge.ts:111

Stable

A DeliveryCommentarySink whose real target is installed later. The WS dispatcher is created before the audit DB opens; 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).

Extends ​

Methods ​

bind() ​

ts
bind(target): void;

Defined in: packages/server/src/commentary/audit-bridge.ts:113

Install the real sink. Replaces any previously-bound target.

Parameters ​

ParameterType
targetDeliveryCommentarySink

Returns ​

void


onDecision() ​

ts
onDecision(decision): void;

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/catch so a misbehaving sink never blocks the wire.

Parameters ​

ParameterType
decisionDeliveryCommentaryDecision

Returns ​

void

Inherited from ​

DeliveryCommentarySink.onDecision