Increase ping interval (#80)

This commit is contained in:
Alan Friedman 2019-06-02 12:21:22 -04:00 committed by GitHub
parent 6ff02e9ef6
commit abee36fbc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -103,7 +103,7 @@ const protocol = (process.env.PROTOCOL || 'http') === 'http' ? http : https;
const server = protocol.createServer(app.callback()); const server = protocol.createServer(app.callback());
const io = Io(server, { const io = Io(server, {
pingInterval: 5000, pingInterval: 20000,
pingTimeout: 5000 pingTimeout: 5000
}); });
io.adapter(socketRedis(process.env.REDIS_URL)); io.adapter(socketRedis(process.env.REDIS_URL));