mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-11 10:25:16 +00:00
Send "download_progress" as websocket event.
This commit is contained in:
parent
cce1ccf9c9
commit
2380ccce0a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user