[lib][native][web] Recover from socket crash loop using fetchPendingUpdates
Summary:
This addresses ENG-8089.
Depends on D12368
Test Plan:
In combination with later diffs, I tested as follows:
- I created a socket crash loop on a physical iOS device using @inka's create-many-threads-to-trigger-crash-loop.js script (see ENG-8090
- I confirmed that the socket was unable to connect prior to my diff stack
- I confirmed that after applying my diff stack, the SUCCESS action was dispatched, and the socket was able to connect afterwards
Reviewers: tomek, kamil
Reviewed By: tomek
Subscribers: kamil, inka
Differential Revision: https://phab.comm.dev/D12369