Send the first SSE event immediately (0.2.22)
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
@@ -442,6 +442,7 @@ def create_app(manager, development=False):
|
||||
'X-Accel-Buffering': 'no', 'X-Content-Type-Options': 'nosniff'})
|
||||
await response.prepare(request)
|
||||
wake, sent = asyncio.Event(), None
|
||||
wake.set() # first event goes out right away
|
||||
manager.listeners.add(wake)
|
||||
try:
|
||||
while True:
|
||||
|
||||
Reference in New Issue
Block a user