web_socket_client Lifecycle Reconnect - Keep Flutter WebSockets from Dying After Resume
Use web_socket_client with Flutter app lifecycle events to stop dead sockets in the background, recreate them on resume, and ignore stale callbacks from an older connection.