{"action":"created","issue":{"url":"https://api.github.com/repos/becvert/cordova-plugin-websocket-server/issues/36","repository_url":"https://api.github.com/repos/becvert/cordova-plugin-websocket-server","labels_url":"https://api.github.com/repos/becvert/cordova-plugin-websocket-server/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/becvert/cordova-plugin-websocket-server/issues/36/comments","events_url":"https://api.github.com/repos/becvert/cordova-plugin-websocket-server/issues/36/events","html_url":"https://github.com/becvert/cordova-plugin-websocket-server/issues/36","id":244841436,"number":36,"title":"Cant connect with socket cordova 7","user":{"login":"Abiraman","id":11270594,"avatar_url":"https://avatars0.githubusercontent.com/u/11270594?v=4","gravatar_id":"","url":"https://api.github.com/users/Abiraman","html_url":"https://github.com/Abiraman","followers_url":"https://api.github.com/users/Abiraman/followers","following_url":"https://api.github.com/users/Abiraman/following{/other_user}","gists_url":"https://api.github.com/users/Abiraman/gists{/gist_id}","starred_url":"https://api.github.com/users/Abiraman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Abiraman/subscriptions","organizations_url":"https://api.github.com/users/Abiraman/orgs","repos_url":"https://api.github.com/users/Abiraman/repos","events_url":"https://api.github.com/users/Abiraman/events{/privacy}","received_events_url":"https://api.github.com/users/Abiraman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-07-22T11:19:43Z","updated_at":"2017-07-24T05:26:18Z","closed_at":null,"body":"App code\r\n```\r\n$scope.RUNSERVER = function () {\r\n        var wsserver = cordova.plugins.wsserver;\r\n       wsserver.start(3000, {\r\n    'onFailure' :  function(addr, port, reason) {\r\n        console.log('Stopped listening on %s:%d. Reason: %s', addr, port, reason);\r\n    },\r\n    'onOpen' : function(conn) {\r\n        console.log('A user connected from %s', conn.remoteAddr);\r\n    },\r\n    'onMessage' : function(conn, msg) {\r\n        console.log(conn, msg);\r\n    },\r\n    'onClose' : function(conn, code, reason, wasClean) {\r\n        console.log('A user disconnected from %s', conn.remoteAddr);\r\n    },\r\n    tcpNoDelay : true\r\n}, \r\nfunction onStart(addr, port) {\r\nconsole.log('Listening on %s:%d', addr, port);\r\n}, \r\nfunction onDidNotStart(reason) {\r\nconsole.log('Did not start. Reason: %s', reason);\r\n});\r\n}\r\n<button ng-click=\"RUNSERVER()\">RUN</button>\r\n```\r\nI got my ip address from google using my ip.\r\n```\r\nvar url = 'ws://10.0.21.222:3004';\r\n    var socket = new WebSocket(url);\r\n    socket.onopen = function() {\r\n        console.info(\"opened\");\r\n    };\r\n\r\n    socket.onclose = function(event) {\r\n        if (event.wasClean) {\r\n            console.info('closed');\r\n        } else {\r\n            console.info('dirty closed');\r\n        }\r\n    };\r\n\r\n    socket.onmessage = function(event) {\r\n        console.info(\"data\" + event.data);\r\n    };\r\n\r\n    socket.onerror = function(error) {\r\n        console.info(\"error \" + error.message);\r\n    };\r\n\r\n```\r\nThis is duplicate issue of #27.\r\nI did not get any result and any console. I did not get ip address in console also"},"comment":{"url":"https://api.github.com/repos/becvert/cordova-plugin-websocket-server/issues/comments/317322673","html_url":"https://github.com/becvert/cordova-plugin-websocket-server/issues/36#issuecomment-317322673","issue_url":"https://api.github.com/repos/becvert/cordova-plugin-websocket-server/issues/36","id":317322673,"user":{"login":"Abiraman","id":11270594,"avatar_url":"https://avatars0.githubusercontent.com/u/11270594?v=4","gravatar_id":"","url":"https://api.github.com/users/Abiraman","html_url":"https://github.com/Abiraman","followers_url":"https://api.github.com/users/Abiraman/followers","following_url":"https://api.github.com/users/Abiraman/following{/other_user}","gists_url":"https://api.github.com/users/Abiraman/gists{/gist_id}","starred_url":"https://api.github.com/users/Abiraman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Abiraman/subscriptions","organizations_url":"https://api.github.com/users/Abiraman/orgs","repos_url":"https://api.github.com/users/Abiraman/repos","events_url":"https://api.github.com/users/Abiraman/events{/privacy}","received_events_url":"https://api.github.com/users/Abiraman/received_events","type":"User","site_admin":false},"created_at":"2017-07-24T05:26:18Z","updated_at":"2017-07-24T05:26:18Z","body":"I am using mobile data for socket server and client running in another network. Is there any firewall issue."}}
{"actor":{"display_login":"Abiraman"}}