{"action":"created","issue":{"url":"https://api.github.com/repos/blocshop/sockets-for-cordova/issues/11","labels_url":"https://api.github.com/repos/blocshop/sockets-for-cordova/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/blocshop/sockets-for-cordova/issues/11/comments","events_url":"https://api.github.com/repos/blocshop/sockets-for-cordova/issues/11/events","html_url":"https://github.com/blocshop/sockets-for-cordova/issues/11","id":93279130,"number":11,"title":"Unsuccessful opening of Socket","user":{"login":"azazlhr","id":13200706,"avatar_url":"https://avatars.githubusercontent.com/u/13200706?v=3","gravatar_id":"","url":"https://api.github.com/users/azazlhr","html_url":"https://github.com/azazlhr","followers_url":"https://api.github.com/users/azazlhr/followers","following_url":"https://api.github.com/users/azazlhr/following{/other_user}","gists_url":"https://api.github.com/users/azazlhr/gists{/gist_id}","starred_url":"https://api.github.com/users/azazlhr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azazlhr/subscriptions","organizations_url":"https://api.github.com/users/azazlhr/orgs","repos_url":"https://api.github.com/users/azazlhr/repos","events_url":"https://api.github.com/users/azazlhr/events{/privacy}","received_events_url":"https://api.github.com/users/azazlhr/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-06T13:30:28Z","updated_at":"2015-07-07T06:01:20Z","closed_at":"2015-07-07T06:01:20Z","body":"Hi,\r\n\r\nSocket.open method's error callback function returns with a following message: \r\n\"-[__NSCFString stringValue]: unrecognized selector sent to instance 0x7b7ca5f8d00\"\r\n\r\nOn debugging the issue at our ends, we found that the first line of SocketAdapter.open() method throws exception (mentioned above). \r\nHere is that line: \r\nNSLog(@\"Setting up connection to %@ : %@\", host, [port stringValue]);\r\n\r\nNote: \r\nhost=10.10.100.254\r\nport=4000\r\n\r\nThe issue surfaced on iOS environment (iPhone 6). \r\nIf we comment the logging code, everything works fine and open method returns successfully.\r\n\r\nWe will be looking forward to your support on this matter. Thanks.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/blocshop/sockets-for-cordova/issues/comments/119082059","html_url":"https://github.com/blocshop/sockets-for-cordova/issues/11#issuecomment-119082059","issue_url":"https://api.github.com/repos/blocshop/sockets-for-cordova/issues/11","id":119082059,"user":{"login":"azazlhr","id":13200706,"avatar_url":"https://avatars.githubusercontent.com/u/13200706?v=3","gravatar_id":"","url":"https://api.github.com/users/azazlhr","html_url":"https://github.com/azazlhr","followers_url":"https://api.github.com/users/azazlhr/followers","following_url":"https://api.github.com/users/azazlhr/following{/other_user}","gists_url":"https://api.github.com/users/azazlhr/gists{/gist_id}","starred_url":"https://api.github.com/users/azazlhr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azazlhr/subscriptions","organizations_url":"https://api.github.com/users/azazlhr/orgs","repos_url":"https://api.github.com/users/azazlhr/repos","events_url":"https://api.github.com/users/azazlhr/events{/privacy}","received_events_url":"https://api.github.com/users/azazlhr/received_events","type":"User","site_admin":false},"created_at":"2015-07-07T06:01:20Z","updated_at":"2015-07-07T06:01:20Z","body":"The issue has been resolved. I was sending port as string value instead of number while calling socket.open method that was a mistake on my end."}}