{"action":"opened","issue":{"url":"https://api.github.com/repos/naderio/nativescript-socket.io/issues/45","repository_url":"https://api.github.com/repos/naderio/nativescript-socket.io","labels_url":"https://api.github.com/repos/naderio/nativescript-socket.io/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/naderio/nativescript-socket.io/issues/45/comments","events_url":"https://api.github.com/repos/naderio/nativescript-socket.io/issues/45/events","html_url":"https://github.com/naderio/nativescript-socket.io/issues/45","id":327132710,"number":45,"title":"Reconnection","user":{"login":"NicoDino","id":8285880,"avatar_url":"https://avatars1.githubusercontent.com/u/8285880?v=4","gravatar_id":"","url":"https://api.github.com/users/NicoDino","html_url":"https://github.com/NicoDino","followers_url":"https://api.github.com/users/NicoDino/followers","following_url":"https://api.github.com/users/NicoDino/following{/other_user}","gists_url":"https://api.github.com/users/NicoDino/gists{/gist_id}","starred_url":"https://api.github.com/users/NicoDino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicoDino/subscriptions","organizations_url":"https://api.github.com/users/NicoDino/orgs","repos_url":"https://api.github.com/users/NicoDino/repos","events_url":"https://api.github.com/users/NicoDino/events{/privacy}","received_events_url":"https://api.github.com/users/NicoDino/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-28T23:33:12Z","updated_at":"2018-05-28T23:33:12Z","closed_at":null,"author_association":"NONE","body":"Hi! thanks for the awesome plugin guys.\r\n\r\nI have the following code, and I'd like to know which is the right way to handle reconnection. \r\nI've tried automatic reconnection without success,  I'm going to try a manual reconnection now and I'd like to know the proper way to do it.\r\n\r\nCheers!\r\n\r\n```\r\n                   const options = {\r\n                        android: {\r\n                            reconnection: false,\r\n                        }\r\n                    };\r\n\r\n                    this.socketIO = SocketIO.connect(SocketBaseURL + '/socket_' + this.socket._id, options);\r\n                    this.socketIO.on('connect', (socket) => {\r\n                        console.log('Socket connected...');\r\n                    });\r\n                    this.socketIO.on('disconnect', (socket) => {\r\n                        console.log('Socket DISCONNECTED...');\r\n                    });\r\n                    this.socketIO.on('connect_error', (socket) => {\r\n                        console.log('Trouble connecting...');\r\n                    });\r\n```"}}
{"actor":{"display_login":"NicoDino"}}