Add message queue for SSE messages POST endpoint (#459)

This commit is contained in:
Akash D 2025-05-06 17:10:43 -07:00 • committed by GitHub
commit 3b1b213a96
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -42,7 +42,7 @@ async def websocket_server(scope: Scope, receive: Receive, send: Send):
await read_stream_writer.send(exc)
continue
session_message = SessionMessage(client_message)
session_message = SessionMessage(message=client_message)
await read_stream_writer.send(session_message)
except anyio.ClosedResourceError:
await websocket.close()