mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/42158 Changelog: [Internal] * Ports an existing Java/ObjC InspectorPackagerConnection behaviour to the C++ implementation: socket errors should trigger a reconnection. This was a simple omission in D52134592. * Clarifies the relationship between the `didFailWithError` and `didClose` methods on `IWebSocketDelegate`: calling either one will terminate the connection (and trigger a reconnection), and it's legal to call `didClose` after `didFailWithError`. * I'm also adding logic to ensure we don't double-schedule reconnections if both methods are called. * Cleans up the scaffolding comments from D52134592 Reviewed By: huntie Differential Revision: D52576727 fbshipit-source-id: 07e5a5c36222dc7bede8bcb17a1f3ced2788736b