Path: blob/master/src/packages/conat/hub/changefeeds/util.ts
1453 views
export const SERVICE = "changefeeds";1export const SUBJECT = "changefeeds.*";23// This is the max *per account* connected to a single server, just4// because everything should have limits.5// If the user refreshes their browser, it is still about a minute6// before all the changefeeds they had open are free (due to the7// SERVER_KEEPALIVE time below).8export const MAX_PER_ACCOUNT = 500;9export const MAX_GLOBAL = 10000;1011const DEBUG_DEVEL_MODE = false;1213export let CLIENT_KEEPALIVE = 90000;14export let SERVER_KEEPALIVE = 45000;15export let KEEPALIVE_TIMEOUT = 10000;1617if (DEBUG_DEVEL_MODE) {18console.log(19"*** WARNING: Using DEBUB_DEVEL_MODE changefeed parameters!! ***",20);21CLIENT_KEEPALIVE = 6000;22SERVER_KEEPALIVE = 3000;23KEEPALIVE_TIMEOUT = 1000;24}2526export const RESOURCE = "PostgreSQL changefeeds";272829