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
..
2015-09-22 10:46:26 -07:00
2015-07-24 08:41:58 -08:00
2015-08-06 15:49:35 -08:00
2015-10-13 08:14:28 -07:00
2015-10-13 08:14:28 -07:00
2015-09-08 03:34:33 -08:00
2015-09-30 21:02:31 -07:00
2015-10-07 09:43:22 -07:00
2015-07-24 08:41:58 -08:00
2015-07-24 08:41:58 -08:00