info - socket.io started Express server listening on port 3000 GET / 200 278ms - 470 GET /stylesheets/style.css 304 8ms GET /javascripts/jquery-1.7.1.min.js 304 5ms GET /javascripts/socket.io.js 304 15ms GET /javascripts/chat.js 304 25ms GET /socket.io/1/?t=1364198652158 404 2ms
app.js中是这样写的
io.sockets.on('connection’, function (socket) { console.log(‘connection’);
3 回复