From c86e9a3372c078bfae9bee8dfc147583b3f30b8c Mon Sep 17 00:00:00 2001 From: MajdajkD Date: Mon, 24 Apr 2023 08:51:32 +0200 Subject: [PATCH] fix websocket batching (#1511) --- extensions/api/streaming_api.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/extensions/api/streaming_api.py b/extensions/api/streaming_api.py index 5ffd925b..c06facc5 100644 --- a/extensions/api/streaming_api.py +++ b/extensions/api/streaming_api.py @@ -44,6 +44,8 @@ async def _handle_connection(websocket, path): 'text': to_send })) + await asyncio.sleep(0) + skip_index += len(to_send) message_num += 1