react-native/Libraries/WebSocket
Leland Richardson b6f1a6085f Increase prepare js timeout
Summary:
We run into this timeout virtually every live-reload now, which I believe is just a function of the size of our React Native code base. Looking at the code, right now the prepare JS call is run and retried 3 times, with a wait/timeout of 1s each. On android, it's done 3 times with a wait/timeout of 5s on each. For consistency, I've updated it to be the same timeout as on android. Trying this with our project, we no longer get red-boxes when we live-reload for the first time.

I've run this on our project locally, and it fixed the issue. It's a very simple change, so I don't believe any additional testing should be needed.

[IOS][BUGFIX][RCTWebsocketExecutor] - Increased timeout to prevent false-positive redbox during development of large RN code base
Closes https://github.com/facebook/react-native/pull/16794

Differential Revision: D6387545

Pulled By: shergin

fbshipit-source-id: c6e58fb82e072c01f9e1277a58d2640d6140a8c7
2017-11-21 14:01:20 -08:00
..
RCTWebSocket.xcodeproj remove RCTWebSocketObserver 2017-10-04 19:17:07 -07:00
__mocks__ Fix WebSocket compatibility with event-target-shim ^1.0.5 2016-04-27 12:26:23 -07:00
__tests__ Adding @email tags to most of the tests 2017-11-02 06:25:03 -07:00
RCTReconnectingWebSocket.h Make RCTPackagerConnection a singleton 2017-11-20 18:36:27 -08:00
RCTReconnectingWebSocket.m Make RCTPackagerConnection a singleton 2017-11-20 18:36:27 -08:00
RCTSRWebSocket.h Backed out changeset 183744d2415b 2016-03-15 11:49:28 -07:00
RCTSRWebSocket.m Merge RCTPackagerClient into RCTPackagerConnection 2017-05-05 08:49:28 -07:00
RCTWebSocketExecutor.h Move all header imports to "<React/..>" 2016-11-23 07:58:39 -08:00
RCTWebSocketExecutor.m Increase prepare js timeout 2017-11-21 14:01:20 -08:00
RCTWebSocketModule.h Add blob implementation with WebSocket integration 2017-07-26 08:23:20 -07:00
RCTWebSocketModule.m WebSocket API change to make room for other connection options (SSL pinning) 2017-08-10 06:02:42 -07:00
WebSocket.js @allow-large-files Flow v0.54.0 2017-09-06 03:33:43 -07:00
WebSocketEvent.js
WebSocketInterceptor.js Reorganize core JS files 2016-10-11 10:14:28 -07:00