我使用来自 socket.io 和 nodejs 的 express。我有这个错误:
throw new Error('Can\'t set headers after they are sent.');
我从
"dependencies": {
"express": "~3.3.6",
"socket.io": "0.9.16",
"jade": "~0.35.0",
"less-middleware": "~0.1.12",
"redis": "~0.8.4",
"connect-redis": "~1.4.5",
"longjohn": "~0.2.1",
"mongoose": "~3.6.20"
和
app.use('/static', express.static(path.join(__dirname, 'public')));
我该如何解决这个问题?