From fda92b723b666c40dc701a552619172fb24453e1 Mon Sep 17 00:00:00 2001 From: BluemediaGER Date: Sat, 20 Apr 2024 17:28:43 +0200 Subject: [PATCH] Fix recv of websocket wrapper --- app/util/websocket_wrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/util/websocket_wrapper.py b/app/util/websocket_wrapper.py index 6f1db56..12eacee 100644 --- a/app/util/websocket_wrapper.py +++ b/app/util/websocket_wrapper.py @@ -13,7 +13,7 @@ class WebSocketWrapper(): try: text = await self._websocket.receive_text() logger.info("Message received: {}", text) - return await self._websocket.receive_text() + return text except WebSocketDisconnect as e: raise ConnectionClosed(e.code, 'WebSocketWrapper')