mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-07 20:12:35 +08:00
Merge d35d4f0b92 into b8315e66cb
This commit is contained in:
commit
deebf85ee0
@ -1,5 +1,6 @@
|
||||
import os
|
||||
import sys
|
||||
import time
|
||||
import asyncio
|
||||
import traceback
|
||||
import time
|
||||
@ -1162,6 +1163,8 @@ class PromptServer():
|
||||
await send_socket_catch_exception(self.sockets[sid].send_json, message)
|
||||
|
||||
def send_sync(self, event, data, sid=None):
|
||||
if isinstance(data, dict):
|
||||
data["happen_at"] = time.time()
|
||||
self.loop.call_soon_threadsafe(
|
||||
self.messages.put_nowait, (event, data, sid))
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user