Loading...
Loading...
Use Litestar's event emitter and listener system with `@listener`, `request.app.emit()`, multiple listeners per event, multi-event listeners, shared argument contracts, and custom event emitter backends. Use when decoupling async side effects, fanout-style in-process notifications, or transport-triggered domain events inside a Litestar app. Do not use for startup/shutdown lifecycle hooks, request/response interception, or broker-backed pub-sub systems that belong in app setup, lifecycle hooks, or channels.
npx skill4agent add alti3/litestar-skills litestar-eventsLitestarlisteners=[...]request.app.emit(...)*args**kwargs**kwargson_startupon_shutdownlitestar-channelslitestar-app-setupSimpleEventEmitterSimpleEventEmitterlitestar-app-setuplitestar-lifecycle-hookslitestar-channelslitestar-testing