标签: node.js socket.io
var http = require('http'); httpServer = http.createServer(function(req, res){ console.log('sss'); }); httpServer(5000); io = require('socket.io').listen(httpServer);
结果如下:
未捕获的类型错误:require(...).listen 不是函数