react-native/Libraries/WebSocket
Yuri Zarubin 45644aab35 Check that WS connection is open before closing it on failed. Fixes #3346
Summary: Check that the WS state is set to OPEN before trying to close it when the ```websocketFailed``` event fires. Otherwise the app throws an error at the Android level.

Fixes #3346
Closes https://github.com/facebook/react-native/pull/3347

Reviewed By: @​svcscm

Differential Revision: D2535807

Pulled By: @mkonicek

fb-gh-sync-id: bb70c551ea2e582cfaa80139a265dbbca6d990d2
2015-10-14 08:46:12 -07:00
..
RCTWebSocket.xcodeproj Implement WebSocket module for Android. Fixes #2837 2015-10-07 08:36:22 -07:00
__mocks__ Fix tests related to event-target-shim 2015-10-02 12:36:23 -07:00
RCTSRWebSocket.h Ran Convert > To Modern Objective C Syntax 2015-08-25 01:08:49 -08:00
RCTSRWebSocket.m Ran Convert > To Modern Objective C Syntax 2015-08-25 01:08:49 -08:00
RCTWebSocketExecutor.h WebSocket polyfill 2015-05-14 09:37:02 -08:00
RCTWebSocketExecutor.m Ran Convert > To Modern Objective C Syntax 2015-08-25 01:08:49 -08:00
RCTWebSocketModule.h Implement WebSocket module for Android. Fixes #2837 2015-10-07 08:36:22 -07:00
RCTWebSocketModule.m Implement WebSocket module for Android. Fixes #2837 2015-10-07 08:36:22 -07:00
WebSocket.js Check that WS connection is open before closing it on failed. Fixes #3346 2015-10-14 08:46:12 -07:00
WebSocketBase.js Implement WebSocket module for Android. Fixes #2837 2015-10-07 08:36:22 -07:00
WebSocketEvent.js Implement WebSocket module for Android. Fixes #2837 2015-10-07 08:36:22 -07:00