/socket.io/socket.io.js 404 (not found)

I'm having problems with socket.io

I looked through all the answers that I saw, and I can not find any discrepancies. Any help would be greatly appreciated. I also had formatting problems when pasting the code here, so I put it on pastebin.

http://pastebin.com/tmdXALFX

+4
source share
1 answer

https://github.com/visionmedia/express/wiki/Migrating-from-2.x-to-3.x

Line 40 becomes

var server = http.createServer(app).listen(app.get('port'), function(){
  console.log('Express server listening on port ' + app.get('port'));
});

var io = require('socket.io').listen(server);
+8
source

All Articles