From f797a1ce539de1db9805d36dfd52dfb6f22bd561 Mon Sep 17 00:00:00 2001 From: retoor Date: Sun, 29 Dec 2024 16:28:41 +0000 Subject: [PATCH] fix: remove redundant comments and debug print from websocket handler in app.py --- src/rwebgui/app.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/rwebgui/app.py b/src/rwebgui/app.py index 7c1e5a2..19bfb2a 100644 --- a/src/rwebgui/app.py +++ b/src/rwebgui/app.py @@ -154,20 +154,16 @@ class Application(BaseApplication): self.router.add_get("/ws/{uuid}", self.websocket_handler) async def websocket_handler(self, request): - # Extract the UUID from the route uuid_value = request.match_info["uuid"] - # Validate if it's a valid UUID try: uuid_obj = uuid.UUID(uuid_value) except ValueError: return web.Response(text="Invalid UUID", status=400) - # Upgrade the connection to WebSocket ws = web.WebSocketResponse() await ws.prepare(request) - print(f"WebSocket connection established with UUID: {uuid_obj}") component = App(self, "app", ws=ws) await component.service()