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')