ui.notify
from a background process?
#2893
-
Update: I was able to use
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @adarshpunj, The problem is that But you can try a similar approach like we do in RoSys: def notify(message: str) -> None:
for client in Client.instances.values():
if not client.has_socket_connection:
continue
with client:
ui.notify(message) This sends the notification to all connected clients. |
Beta Was this translation helpful? Give feedback.
Interesting solution! It might be less intuitive to read, but should work as well. This way you're sending the notification only to the client who called
notify(None)
in the first place. 👍🏻