{"action":"created","issue":{"url":"https://api.github.com/repos/TakahikoKawasaki/nv-websocket-client/issues/26","repository_url":"https://api.github.com/repos/TakahikoKawasaki/nv-websocket-client","labels_url":"https://api.github.com/repos/TakahikoKawasaki/nv-websocket-client/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/TakahikoKawasaki/nv-websocket-client/issues/26/comments","events_url":"https://api.github.com/repos/TakahikoKawasaki/nv-websocket-client/issues/26/events","html_url":"https://github.com/TakahikoKawasaki/nv-websocket-client/issues/26","id":126315514,"number":26,"title":"move creation of raw socket from WebSocketFactory class to WebSocket","user":{"login":"ant-se","id":6483638,"avatar_url":"https://avatars.githubusercontent.com/u/6483638?v=3","gravatar_id":"","url":"https://api.github.com/users/ant-se","html_url":"https://github.com/ant-se","followers_url":"https://api.github.com/users/ant-se/followers","following_url":"https://api.github.com/users/ant-se/following{/other_user}","gists_url":"https://api.github.com/users/ant-se/gists{/gist_id}","starred_url":"https://api.github.com/users/ant-se/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ant-se/subscriptions","organizations_url":"https://api.github.com/users/ant-se/orgs","repos_url":"https://api.github.com/users/ant-se/repos","events_url":"https://api.github.com/users/ant-se/events{/privacy}","received_events_url":"https://api.github.com/users/ant-se/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-01-13T01:03:15Z","updated_at":"2016-03-11T05:59:46Z","closed_at":"2016-03-11T05:59:46Z","body":"hi, I implement a wrapper of your lib for Android. \r\nThe problem is next - in Android all networking should be in background threads, so even creation of WebSocket instance is problem, cause method WebSocketFactory.createSocket() direct calls method createRawSocket(...). This method call Socket.connect(...). Thats mean when I just create Websocket, rawsocket under it become already connected, even before I call Websocket.connect().\r\n\r\nso my suggestion is next: move creation and connection of raw socket \"createRawSocket(host, port, secure, timeout)\" from WebSocketFactory to WebSocket.connect() method."},"comment":{"url":"https://api.github.com/repos/TakahikoKawasaki/nv-websocket-client/issues/comments/195208610","html_url":"https://github.com/TakahikoKawasaki/nv-websocket-client/issues/26#issuecomment-195208610","issue_url":"https://api.github.com/repos/TakahikoKawasaki/nv-websocket-client/issues/26","id":195208610,"user":{"login":"TakahikoKawasaki","id":1641166,"avatar_url":"https://avatars.githubusercontent.com/u/1641166?v=3","gravatar_id":"","url":"https://api.github.com/users/TakahikoKawasaki","html_url":"https://github.com/TakahikoKawasaki","followers_url":"https://api.github.com/users/TakahikoKawasaki/followers","following_url":"https://api.github.com/users/TakahikoKawasaki/following{/other_user}","gists_url":"https://api.github.com/users/TakahikoKawasaki/gists{/gist_id}","starred_url":"https://api.github.com/users/TakahikoKawasaki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TakahikoKawasaki/subscriptions","organizations_url":"https://api.github.com/users/TakahikoKawasaki/orgs","repos_url":"https://api.github.com/users/TakahikoKawasaki/repos","events_url":"https://api.github.com/users/TakahikoKawasaki/events{/privacy}","received_events_url":"https://api.github.com/users/TakahikoKawasaki/received_events","type":"User","site_admin":false},"created_at":"2016-03-11T05:59:46Z","updated_at":"2016-03-11T05:59:46Z","body":"Version 1.22 includes the fix for this issue. See #35. Thank you."}}