Add CLI run options, update README

This commit is contained in:
mirai
2023-11-27 06:50:16 +03:00
parent 8c4799c634
commit c5fa982f65
7 changed files with 76 additions and 25 deletions
+1 -2
View File
@@ -6,8 +6,7 @@ from cmd_chat.server.models import Message
async def _get_bytes_and_serialize(
ws: Websocket
) -> dict:
ws_data = await ws.recv()
return ast.literal_eval(ws_data.decode('utf-8'))
return ast.literal_eval(await ws.recv())
async def _check_ws_for_close_status(