From 2380ccce0a8baec6410f7a316d50563022566e0c Mon Sep 17 00:00:00 2001 From: Robin Huang Date: Tue, 6 Aug 2024 21:22:01 -0700 Subject: [PATCH] Send "download_progress" as websocket event. --- server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server.py b/server.py index 5044c116..93423c5b 100644 --- a/server.py +++ b/server.py @@ -564,7 +564,8 @@ class PromptServer(): @routes.post("/download") async def download_handler(request): async def report_progress(filename: str, status: DownloadStatus): - await self.send_json(filename, { + await self.send_json("download_progress", { + "filename": filename, "progress_percentage": status.progress_percentage, "status": status.status, "message": status.message