{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/react-native/issues/4803","labels_url":"https://api.github.com/repos/facebook/react-native/issues/4803/labels{/name}","comments_url":"https://api.github.com/repos/facebook/react-native/issues/4803/comments","events_url":"https://api.github.com/repos/facebook/react-native/issues/4803/events","html_url":"https://github.com/facebook/react-native/issues/4803","id":122377640,"number":4803,"title":"Websocket polyfill doesn't call onClose after connect() fails","user":{"login":"burgalon","id":47217,"avatar_url":"https://avatars.githubusercontent.com/u/47217?v=3","gravatar_id":"","url":"https://api.github.com/users/burgalon","html_url":"https://github.com/burgalon","followers_url":"https://api.github.com/users/burgalon/followers","following_url":"https://api.github.com/users/burgalon/following{/other_user}","gists_url":"https://api.github.com/users/burgalon/gists{/gist_id}","starred_url":"https://api.github.com/users/burgalon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/burgalon/subscriptions","organizations_url":"https://api.github.com/users/burgalon/orgs","repos_url":"https://api.github.com/users/burgalon/repos","events_url":"https://api.github.com/users/burgalon/events{/privacy}","received_events_url":"https://api.github.com/users/burgalon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-15T22:03:56Z","updated_at":"2015-12-15T22:04:27Z","closed_at":null,"body":"Currently standard browser implementations call socket.onClose after failing connect()\r\nThis allows for libraries (such as [phoenix.js](https://github.com/phoenixframework/phoenix/blob/master/web/static/js/phoenix.js)) to handle reconnecting properly.\r\n\r\n@nicklockwood Do you think this might be relevant https://github.com/square/SocketRocket/issues/299 ?"},"comment":{"url":"https://api.github.com/repos/facebook/react-native/issues/comments/164912234","html_url":"https://github.com/facebook/react-native/issues/4803#issuecomment-164912234","issue_url":"https://api.github.com/repos/facebook/react-native/issues/4803","id":164912234,"user":{"login":"facebook-github-bot","id":6422482,"avatar_url":"https://avatars.githubusercontent.com/u/6422482?v=3","gravatar_id":"","url":"https://api.github.com/users/facebook-github-bot","html_url":"https://github.com/facebook-github-bot","followers_url":"https://api.github.com/users/facebook-github-bot/followers","following_url":"https://api.github.com/users/facebook-github-bot/following{/other_user}","gists_url":"https://api.github.com/users/facebook-github-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/facebook-github-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/facebook-github-bot/subscriptions","organizations_url":"https://api.github.com/users/facebook-github-bot/orgs","repos_url":"https://api.github.com/users/facebook-github-bot/repos","events_url":"https://api.github.com/users/facebook-github-bot/events{/privacy}","received_events_url":"https://api.github.com/users/facebook-github-bot/received_events","type":"User","site_admin":false},"created_at":"2015-12-15T22:04:27Z","updated_at":"2015-12-15T22:04:27Z","body":"Hey burgalon, thanks for reporting this issue!\n\nReact Native, as you've probably heard, is getting really popular and truth is we're getting a bit overwhelmed by the activity surrounding it. There are just too many issues for us to manage properly.\n\n- If you **don't know how to do something** or not sure whether some behavior is expected or a bug, please ask on [StackOverflow](http://stackoverflow.com/questions/tagged/react-native) with the tag `react-native` or for more real time interactions, ask on [Discord](https://discord.gg/0ZcbPKXt5bZjGY5n) in the #react-native channel.\n\n- If this is a **feature request or a bug** that you would like to be fixed, please report it on [Product Pains](https://productpains.com/product/react-native/). It has a ranking feature that lets us focus on the most important issues the community is experiencing.\n\n- We welcome clear issues and PRs that are ready for in-depth discussion. Please provide **screenshots** where appropriate and always mention the **version** of React Native you're using. Thank you for your contributions!\n"}}