Fix client side message handling
This commit is contained in:
@@ -86,11 +86,8 @@ class WebSocketManager:
|
||||
})
|
||||
async for msg in ws:
|
||||
if msg.type == WSMsgType.TEXT:
|
||||
#try:
|
||||
data = json.loads(msg.data)
|
||||
await self._handle_client_message(request, data)
|
||||
#except Exception as e:
|
||||
# print(f"Error handling incoming websocket message: {msg}\n{e}")
|
||||
elif msg.type == WSMsgType.ERROR:
|
||||
print(f"WebSocket connection closed with error: {ws.exception()}")
|
||||
finally:
|
||||
|
||||
Reference in New Issue
Block a user