Files
ciomek 8fbc7fed7d
Build and Push Docker Image / build-and-push (push) Successful in 15s
JSON parse
2026-08-16 13:23:26 +02:00

14 lines
322 B
Python

import json
from loon.web.users.state import user_threads
async def server_handler(client, userdata, msg, data):
if msg.topic != "loon/server/info":
return
envelope = json.dumps({"topic": "server/info", "payload": data})
for queue in list(user_threads.values()):
await queue.put(envelope)