{"action":"closed","issue":{"url":"https://api.github.com/repos/NathanaelA/nativescript-websockets/issues/25","repository_url":"https://api.github.com/repos/NathanaelA/nativescript-websockets","labels_url":"https://api.github.com/repos/NathanaelA/nativescript-websockets/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/NathanaelA/nativescript-websockets/issues/25/comments","events_url":"https://api.github.com/repos/NathanaelA/nativescript-websockets/issues/25/events","html_url":"https://github.com/NathanaelA/nativescript-websockets/issues/25","id":219789199,"number":25,"title":"Getting websocket error code 1006 in iOS.","user":{"login":"viniciodeltoro","id":5911307,"avatar_url":"https://avatars3.githubusercontent.com/u/5911307?v=4","gravatar_id":"","url":"https://api.github.com/users/viniciodeltoro","html_url":"https://github.com/viniciodeltoro","followers_url":"https://api.github.com/users/viniciodeltoro/followers","following_url":"https://api.github.com/users/viniciodeltoro/following{/other_user}","gists_url":"https://api.github.com/users/viniciodeltoro/gists{/gist_id}","starred_url":"https://api.github.com/users/viniciodeltoro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/viniciodeltoro/subscriptions","organizations_url":"https://api.github.com/users/viniciodeltoro/orgs","repos_url":"https://api.github.com/users/viniciodeltoro/repos","events_url":"https://api.github.com/users/viniciodeltoro/events{/privacy}","received_events_url":"https://api.github.com/users/viniciodeltoro/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-04-06T05:20:27Z","updated_at":"2018-05-28T22:05:33Z","closed_at":"2018-05-28T22:05:33Z","author_association":"NONE","body":"I'm using an Actioncable js file to connect to an Actioncable rails server. This actioncable js file uses this nativescript-websockets plugin.\r\nI have been doing connection testing on Android and it works properly, the connection works properly on the web browser as well but when I run it on iOS I get an error like this:\r\n`Socket was closed because:    code:  1006`\r\nThis [link](http://stackoverflow.com/questions/19304157/getting-the-reason-why-websockets-closed) explains that the connection gets closed abnormally because some incompatibility between the server and the client. I don't really know can can be the issue.\r\nI did [post](http://stackoverflow.com/questions/43175006/getting-websocket-error-code-1006-when-trying-to-connect-to-actioncable-server) in Stackoverflow since I thought the issue was happening because of the protocols used (actioncable-v1-json, actioncable-unsupported), but even if I don't provide these protocols on the browser test, the connection still works.\r\n\r\nAny ideas on what is causing this issue?\r\nThanks"}}
{"actor":{"display_login":"NathanaelA"}}