aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/utility/Constants.js
blob: 68364214ad901a70bd9759c74af48ef4f4ede2c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/**
  * Rate limit options
  * @typedef {Object} RateLimits
  * @property {number} halflife Time in milliseconds to decrement ratelimit weight
  * @property {number} threshold Weight until ratelimited
  */
exports.RateLimits = {
  halflife: 30 * 1000,
  threshold: 25,
};

/**
  * Websocket server options
  * @typedef {Object} ServerConst
  * @property {number} PulseSpeed Time in milliseconds to ping each client
  */
exports.ServerConst = {
  PulseSpeed: 16 * 1000,
};