Add HTML5 authoring SSE updates
CI / python (push) Has been cancelled
CI / rust (push) Has been cancelled

This commit is contained in:
2026-05-17 02:41:02 +03:00
parent de7248db9e
commit fb66cfba6f
3 changed files with 17 additions and 3 deletions
@@ -1702,6 +1702,10 @@ async def html5_project_events(project_id: str, once: bool = False) -> Streaming
except HTTPException as error:
fragment = f'<span>project: {project_id}</span><span>error: {error.detail}</span>'
yield _html5_sse_event("status", fragment)
yield _html5_sse_event(
"authoring-changes",
render_html5_authoring_changes(project_id, _authoring_change_summaries(project_id)),
)
if once:
break
time.sleep(5)