{"action":"created","issue":{"url":"https://api.github.com/repos/socketio/socket.io/issues/2502","repository_url":"https://api.github.com/repos/socketio/socket.io","labels_url":"https://api.github.com/repos/socketio/socket.io/issues/2502/labels{/name}","comments_url":"https://api.github.com/repos/socketio/socket.io/issues/2502/comments","events_url":"https://api.github.com/repos/socketio/socket.io/issues/2502/events","html_url":"https://github.com/socketio/socket.io/pull/2502","id":144298463,"number":2502,"title":"updated Express instructions so they work.","user":{"login":"Pomax","id":177243,"avatar_url":"https://avatars.githubusercontent.com/u/177243?v=3","gravatar_id":"","url":"https://api.github.com/users/Pomax","html_url":"https://github.com/Pomax","followers_url":"https://api.github.com/users/Pomax/followers","following_url":"https://api.github.com/users/Pomax/following{/other_user}","gists_url":"https://api.github.com/users/Pomax/gists{/gist_id}","starred_url":"https://api.github.com/users/Pomax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pomax/subscriptions","organizations_url":"https://api.github.com/users/Pomax/orgs","repos_url":"https://api.github.com/users/Pomax/repos","events_url":"https://api.github.com/users/Pomax/events{/privacy}","received_events_url":"https://api.github.com/users/Pomax/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-29T15:24:34Z","updated_at":"2016-04-11T16:51:32Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/socketio/socket.io/pulls/2502","html_url":"https://github.com/socketio/socket.io/pull/2502","diff_url":"https://github.com/socketio/socket.io/pull/2502.diff","patch_url":"https://github.com/socketio/socket.io/pull/2502.patch"},"body":"The listed instructions do not work, this update does. I spent a good 2 hours trying to figure out why the heck nothing worked until I ran across [this SO post](http://stackoverflow.com/questions/24222483/socket-io-1-0-express-4-2-no-socket-connection/24222869#24222869) that lists the code change in this PR, which worked perfectly with modern Express.\r\n\r\nAnother update to the site's http://socket.io/docs/ will be necessary, as that also lists code for express 3/4 that simply does not work."},"comment":{"url":"https://api.github.com/repos/socketio/socket.io/issues/comments/208446456","html_url":"https://github.com/socketio/socket.io/pull/2502#issuecomment-208446456","issue_url":"https://api.github.com/repos/socketio/socket.io/issues/2502","id":208446456,"user":{"login":"Pomax","id":177243,"avatar_url":"https://avatars.githubusercontent.com/u/177243?v=3","gravatar_id":"","url":"https://api.github.com/users/Pomax","html_url":"https://github.com/Pomax","followers_url":"https://api.github.com/users/Pomax/followers","following_url":"https://api.github.com/users/Pomax/following{/other_user}","gists_url":"https://api.github.com/users/Pomax/gists{/gist_id}","starred_url":"https://api.github.com/users/Pomax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pomax/subscriptions","organizations_url":"https://api.github.com/users/Pomax/orgs","repos_url":"https://api.github.com/users/Pomax/repos","events_url":"https://api.github.com/users/Pomax/events{/privacy}","received_events_url":"https://api.github.com/users/Pomax/received_events","type":"User","site_admin":false},"created_at":"2016-04-11T16:51:32Z","updated_at":"2016-04-11T16:51:32Z","body":"that's quite surprising, as the code as-is does not start the express app, but a different, standard nodejs `http` server. This worked for you with a straight up copy-paste and express 4?"}}