Added GET
This commit is contained in:
parent
5f9519b54d
commit
90dd3e13e1
1 changed files with 2 additions and 0 deletions
2
main.py
2
main.py
|
@ -24,6 +24,8 @@ async def handle(websocket):
|
|||
await websocket.send("HI")
|
||||
else:
|
||||
await websocket.send(f"HI {EAS_MESSAGE}")
|
||||
if message == "GET":
|
||||
await websocket.send(f"MSG {EAS_MESSAGE}")
|
||||
if message.startswith(f"MSG {TOKEN} "):
|
||||
# broadcast from vee
|
||||
EAS_MESSAGE = message.replace(f"MSG {TOKEN} ", "")
|
||||
|
|
Reference in a new issue