src/dazzle_back/runtime/sse_stream.py¶
Generated: 2026-03-30T04:38:48.347255+00:00
Commit: 615f1354a103
Language: python
Scope: dazzle_back
Purpose¶
Server-Sent Events (SSE) streaming infrastructure.
Provides SSE endpoints that subscribe to the EventBus and stream events to clients in real-time. This leverages the existing Kafka-shaped EventBus abstraction (DevBusMemory, KafkaBus) for event delivery.
Key features: - Multiple named streams (hea...
Key Exports¶
StreamTypeSSEMessageStreamSubscriptionSSEStreamManagercreate_sse_routesserializestartstopcreate_subscriptionremove_subscriptionstreamget_statsstream_healthstream_eventsstream_api_callsstream_analyticsstream_allget_stats
Dependencies¶
Imports¶
asynciojsonloggingcollections.abc.AsyncGeneratordataclasses.dataclassdataclasses.fielddatetime.UTCdatetime.datetimeenum.StrEnumtyping.Anyuuid.uuid4fastapi.APIRouterfastapi.Headerfastapi.Queryfastapi.Requestfastapi.responses.StreamingResponse
Event Interactions¶
Emits: SSEMessage
Invariants and Assumptions¶
No invariants documented.
Tests¶
tests/integration/test_runtime_e2e.pytests/integration/test_runtime_pipeline.pytests/unit/test_runtime_test_routes.pytests/unit/test_runtime_services.pytests/unit/test_runtime_mcp_tools.py
Notes¶
This page was automatically generated by tools/gen_reference_docs.py.