Fixed connection close on null reply
This commit is contained in:
parent
9111c63691
commit
f419e9faf0
1 changed files with 2 additions and 2 deletions
2
main.py
2
main.py
|
@ -20,7 +20,7 @@ async def handle(websocket):
|
||||||
if message == "GET":
|
if message == "GET":
|
||||||
if EAS_MESSAGE == "":
|
if EAS_MESSAGE == "":
|
||||||
await websocket.send("NULL")
|
await websocket.send("NULL")
|
||||||
return
|
else:
|
||||||
await websocket.send(f"MSG {EAS_MESSAGE}")
|
await websocket.send(f"MSG {EAS_MESSAGE}")
|
||||||
if message.startswith(f"MSG {TOKEN} "):
|
if message.startswith(f"MSG {TOKEN} "):
|
||||||
# broadcast from vee
|
# broadcast from vee
|
||||||
|
|
Reference in a new issue