Implementing Robust Error Handling for WebSocket Connections - IoT Device Manager - ProjectAI