我收到错误
http://lowcost-env.b8cgexs3tc.us-west-2.elasticbeanstalk.com/socket.io/?EIO=3&transport=polling&t=LliRJNu 404 (Not Found)
当我部署我的应用程序并尝试运行它时。 Socket.io在localhost上本地工作得很好。
我的服务器设置:
var server = require('http').Server(express);
var io = require('socket.io')(server);
server.listen(8080);
客户端:
io.connect('LowCost-env.b8cgexs3tc.us-west-2.elasticbeanstalk.com')
来自亚马逊的错误日志显示:
Error: listen EADDRINUSE :::8080
at Object.exports._errnoException (util.js:1022:11)
at exports._exceptionWithHostPort (util.js:1045:20)
at Server._listen2 (net.js:1259:14)
at listen (net.js:1295:10)
at Server.listen (net.js:1391:5)
at EventEmitter.listen (/var/app/current/node_modules/express/lib/application.js:618:24)
at Object.<anonymous> (/var/app/current/server/index.js:8:5)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
Tue, 09 May 2017 11:30:38 GMT express-session deprecated undefined resave
option; provide resave option at server/app.js:27:9
Tue, 09 May 2017 11:30:38 GMT express-session deprecated undefined
saveUninitialized option; provide saveUninitialized option at server/app.js:27:9
在亚马逊我禁用了代理,所以我没有使用nginx。问题出在这里?