This commit is contained in:
nin0 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 # broadcast from vee
EAS_MESSAGE = message.replace(f"MSG {TOKEN} ", "") EAS_MESSAGE = message.replace(f"MSG {TOKEN} ", "")
websockets.broadcast(CONNECTIONS, f"MSG {EAS_MESSAGE}") websockets.broadcast(CONNECTIONS, f"MSG {EAS_MESSAGE}")
if message.startswith(f"CLEAR {TOKEN} "): if message.startswith(f"CLEAR {TOKEN}"):
# clear # clear
EAS_MESSAGE = "" EAS_MESSAGE = ""
await websocket.send(f"OK") await websocket.send(f"OK")