This commit is contained in:
nin0dev 2024-06-18 01:07:04 -04:00
parent 02f0330226
commit 94cda49a16

View file

@ -30,7 +30,7 @@ async def handle(websocket):
# broadcast from vee
EAS_MESSAGE = message.replace(f"MSG {TOKEN} ", "")
websockets.broadcast(CONNECTIONS, f"MSG {EAS_MESSAGE}")
if message.startswith(f"CLEAR {TOKEN} "):
if message.startswith(f"CLEAR {TOKEN}"):
# clear
EAS_MESSAGE = ""
await websocket.send(f"OK")