System-event sink configuration. Attach to HotMeshConfig.events,
EscalationClientConfig.events, or ClientConfig.events to receive
lifecycle events from the SDK.
The SDK calls publish after each durable transition commits, from the
single actor that performed the commit. In a multi-container fleet every
container's SDK calls its own publish hook — and only for the work it
performed — so exactly one container's publish fires per real event.
Example
constevents: EventsConfig = { publish: (event) => { // map SystemEvent → your LTEvent shape and hand to NATS/Socket.IO eventRegistry.publish(mapToLTEvent(event)); }, };
Called post-commit by the performing actor. Fire-and-forget — the SDK
does not await the return value; a thrown/rejected promise is silently
swallowed so the committed call is never failed by a publish error.
System-event sink configuration. Attach to
HotMeshConfig.events,EscalationClientConfig.events, orClientConfig.eventsto receive lifecycle events from the SDK.The SDK calls
publishafter each durable transition commits, from the single actor that performed the commit. In a multi-container fleet every container's SDK calls its ownpublishhook — and only for the work it performed — so exactly one container'spublishfires per real event.Example