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
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);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With