4

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

4

1 回答 1

8

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

第 40 行变为

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);
于 2013-10-27T04:11:49.513 回答