increase ping and batch intervals
This commit is contained in:
parent
d21408ac63
commit
2f19cb211d
1 changed files with 2 additions and 2 deletions
|
@ -7,8 +7,8 @@ import { gatewayErrors } from "../errors";
|
||||||
import { GatewayPayload } from "../types/gatewaypayload";
|
import { GatewayPayload } from "../types/gatewaypayload";
|
||||||
import { GatewayPayloadType } from "./gatewaypayloadtype";
|
import { GatewayPayloadType } from "./gatewaypayloadtype";
|
||||||
|
|
||||||
const GATEWAY_BATCH_INTERVAL = 25000 || process.env.GATEWAY_BATCH_INTERVAL;
|
const GATEWAY_BATCH_INTERVAL = 50000;
|
||||||
const GATEWAY_PING_INTERVAL = 20000 || process.env.GATEWAY_PING_INTERVAL;
|
const GATEWAY_PING_INTERVAL = 40000;
|
||||||
|
|
||||||
// mapping between a dispatch id and a websocket client
|
// mapping between a dispatch id and a websocket client
|
||||||
const dispatchChannels = new Map<string, Set<WebSocket>>();
|
const dispatchChannels = new Map<string, Set<WebSocket>>();
|
||||||
|
|
Loading…
Reference in a new issue