Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

/socket.io/socket.io.js 404 (Not Found)

I'm having some issues with socket.io

I have looked at all of the answers that I have seen, and I cannot find any discrepancies. Any help would be appreciated. I was also having formatting issues with pasting the code onto here so I put it onto pastebin.

http://pastebin.com/tmdXALFX

like image 603
Harry Torry Avatar asked Feb 14 '23 20:02

Harry Torry


1 Answers

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);
like image 144
Harry Torry Avatar answered Feb 26 '23 20:02

Harry Torry