{"action":"opened","issue":{"url":"https://api.github.com/repos/Wakanda/wakanda-issues/issues/125","repository_url":"https://api.github.com/repos/Wakanda/wakanda-issues","labels_url":"https://api.github.com/repos/Wakanda/wakanda-issues/issues/125/labels{/name}","comments_url":"https://api.github.com/repos/Wakanda/wakanda-issues/issues/125/comments","events_url":"https://api.github.com/repos/Wakanda/wakanda-issues/issues/125/events","html_url":"https://github.com/Wakanda/wakanda-issues/issues/125","id":190351642,"number":125,"title":"Socket problem","user":{"login":"magonzacha","id":23026900,"avatar_url":"https://avatars.githubusercontent.com/u/23026900?v=3","gravatar_id":"","url":"https://api.github.com/users/magonzacha","html_url":"https://github.com/magonzacha","followers_url":"https://api.github.com/users/magonzacha/followers","following_url":"https://api.github.com/users/magonzacha/following{/other_user}","gists_url":"https://api.github.com/users/magonzacha/gists{/gist_id}","starred_url":"https://api.github.com/users/magonzacha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/magonzacha/subscriptions","organizations_url":"https://api.github.com/users/magonzacha/orgs","repos_url":"https://api.github.com/users/magonzacha/repos","events_url":"https://api.github.com/users/magonzacha/events{/privacy}","received_events_url":"https://api.github.com/users/magonzacha/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-18T15:49:01Z","updated_at":"2016-11-18T15:49:01Z","closed_at":null,"body":"Hi there,\r\n\r\nI've took this code from an example in the manual and actually is not working. \r\n\r\nvar net = require('net');\r\nvar server = net.createServer(function(socket) { //'connection' listener\r\n    console.log('server connected');\r\n    socket.on('end', function() {\r\n        console.log('server disconnected');\r\n    });\r\n    socket.write('hello\\r\\n');\r\n});\r\nserver.listen(8082, \"127.0.0.1\", function() { //'listening' event listener\r\n    console.log('server bound');\r\n});\r\n\r\nIt says that \"Cannot read property 'listen' of undefined\".\r\nWhen I check with the debugger the var server that is creating at the top it says undefined.\r\n\r\nWhat I need to do is to create a listener and for that I need to create a socket that keep listening for incoming messages.\r\n\r\nI'll appreciate any input about this.\r\n\r\nFor another method I've used the code  below but this connects to a server that is already listening.\r\nvar socket = new net.Socket();\r\n// Connect the socket\r\nsocket.connect(8082, '127.0.0.1', function () {\r\n\r\n\r\nThank you very much in advance.\r\nMiguel\r\n"}}
{"actor":{"display_login":"magonzacha"}}