{"action":"created","issue":{"url":"https://api.github.com/repos/timum-viw/socket.io-client/issues/26","repository_url":"https://api.github.com/repos/timum-viw/socket.io-client","labels_url":"https://api.github.com/repos/timum-viw/socket.io-client/issues/26/labels{/name}","comments_url":"https://api.github.com/repos/timum-viw/socket.io-client/issues/26/comments","events_url":"https://api.github.com/repos/timum-viw/socket.io-client/issues/26/events","html_url":"https://github.com/timum-viw/socket.io-client/issues/26","id":328850372,"node_id":"MDU6SXNzdWUzMjg4NTAzNzI=","number":26,"title":"It should work but it doesn't.","user":{"login":"Tvde1","id":11540531,"node_id":"MDQ6VXNlcjExNTQwNTMx","avatar_url":"https://avatars2.githubusercontent.com/u/11540531?v=4","gravatar_id":"","url":"https://api.github.com/users/Tvde1","html_url":"https://github.com/Tvde1","followers_url":"https://api.github.com/users/Tvde1/followers","following_url":"https://api.github.com/users/Tvde1/following{/other_user}","gists_url":"https://api.github.com/users/Tvde1/gists{/gist_id}","starred_url":"https://api.github.com/users/Tvde1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tvde1/subscriptions","organizations_url":"https://api.github.com/users/Tvde1/orgs","repos_url":"https://api.github.com/users/Tvde1/repos","events_url":"https://api.github.com/users/Tvde1/events{/privacy}","received_events_url":"https://api.github.com/users/Tvde1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-03T18:23:13Z","updated_at":"2018-06-04T14:52:09Z","closed_at":null,"author_association":"NONE","body":"The Serial monitor no longer outputs \"disconnected\". I think it connects but idk why it won't work.\r\n\r\nMy server:\r\n```\r\nconst server = http.createServer((request, response) => {  \r\n\tresponse.writeHeader(200, {'Content-Type': 'text/html'});  \r\n\tresponse.write(html);\r\n\tresponse.end(); \r\n});\r\nserver.listen(80);\r\nconst io = socketio.listen(server);\r\n\r\nio.on('connection', socket => {\r\n\tconsole.log('New client.'); //This DOES log.\r\n\tsocket.on('sample', sample => {\r\n\t\tconsole.log('Received: ' + sample);\r\n\t});\r\n});\r\n```\r\nAnd my client\r\n```\r\ntypedef struct Config {\r\n\tString host = \"192.168.2.5\";\r\n\tint port = 80;\r\n};\r\n\r\nConfig config;\r\nSocketIoClient socket;\r\n\r\nvoid setup() {\r\n\t//I am connected to wifi\r\n\tsocket.begin(config.host.c_str(), config.port);\r\n\tsocket.on(\"connect\", event);\r\n\tsocket.on(\"disconnect\", [](const char* a, size_t b){});\r\n\r\n}\r\n\r\nvoid loop() {\r\n\tsocket.loop();\r\n\tdelay(1000);\r\n\tsocket.emit(\"sample\", \"\\\"100\\\"\");\r\n}\r\n```\r\n\r\nI can't find why this won't work."},"comment":{"url":"https://api.github.com/repos/timum-viw/socket.io-client/issues/comments/394383135","html_url":"https://github.com/timum-viw/socket.io-client/issues/26#issuecomment-394383135","issue_url":"https://api.github.com/repos/timum-viw/socket.io-client/issues/26","id":394383135,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDM4MzEzNQ==","user":{"login":"timum-viw","id":7080470,"node_id":"MDQ6VXNlcjcwODA0NzA=","avatar_url":"https://avatars3.githubusercontent.com/u/7080470?v=4","gravatar_id":"","url":"https://api.github.com/users/timum-viw","html_url":"https://github.com/timum-viw","followers_url":"https://api.github.com/users/timum-viw/followers","following_url":"https://api.github.com/users/timum-viw/following{/other_user}","gists_url":"https://api.github.com/users/timum-viw/gists{/gist_id}","starred_url":"https://api.github.com/users/timum-viw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timum-viw/subscriptions","organizations_url":"https://api.github.com/users/timum-viw/orgs","repos_url":"https://api.github.com/users/timum-viw/repos","events_url":"https://api.github.com/users/timum-viw/events{/privacy}","received_events_url":"https://api.github.com/users/timum-viw/received_events","type":"User","site_admin":false},"created_at":"2018-06-04T14:52:09Z","updated_at":"2018-06-04T14:52:09Z","author_association":"OWNER","body":"Could you elaborate what exactly does not work? Is it throwing errors or does it simply not log the event? What output does the console give you?"}}
{"actor":{"display_login":"timum-viw"}}