mirror of
https://github.com/darkwire/darkwire.io.git
synced 2025-07-19 02:59:57 +00:00
Increase ping interval (#80)
This commit is contained in:
parent
6ff02e9ef6
commit
abee36fbc7
@ -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));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user