main: make receive_message easier to debug

This commit is contained in:
lemoer 2024-12-28 02:19:17 +01:00
parent db7a98aa21
commit dee545a6fa

View File

@ -223,7 +223,8 @@ class SignalAPI:
yield websocket yield websocket
async def receive_message(self, websocket) -> Result[Message, str]: async def receive_message(self, websocket) -> Result[Message, str]:
return parse_response(Message, await websocket.recv()) res = await websocket.recv()
return parse_response(Message, res)
def send_message(self, message: SendMessageSimple) -> Result[SendMessageResponse, str]: def send_message(self, message: SendMessageSimple) -> Result[SendMessageResponse, str]:
data = message.model_dump() data = message.model_dump()