Handle connection interruptions gracefully during flight

MRs

Description

Current behavior does not properly inform users or automatically recover when a connection drops mid-flight.

Scope

  • Display a notification when a device connection is lost.
  • Implement automatic reconnection attempts.
  • Track attached event listener callbacks and reattach them to new sockets on reconnects - Re-sync state after reconnection to ensure flight data continuity.
Edited by Avinash