A most inelegant hack.

This commit is contained in:
Raelon Masters
2020-08-10 13:19:35 -04:00
parent 6f06796cba
commit 3f99c15038
2 changed files with 23 additions and 4 deletions

View File

@@ -19,6 +19,9 @@ async def echo(websocket, path):
elif message == "ping":
print("<<[{}]".format(message))
tx = pong(message)
elif message == "importBooks":
print("<<[{} cmd rcvd]\n Starting import".format(message))
tx = "Starting Import . . ."
await websocket.send(tx)