addons/isl-server/src/constants.tsblame
View source
b69ab311/**
b69ab312 * Copyright (c) Meta Platforms, Inc. and affiliates.
b69ab313 *
b69ab314 * This source code is licensed under the MIT license found in the
b69ab315 * LICENSE file in the root directory of this source tree.
b69ab316 */
b69ab317
b69ab318/**
b69ab319 * User-defined code for websocket close that tells the client not to continue reconnecting.
b69ab3110 * User-defined codes are in the range 3000-4999: https://www.rfc-editor.org/rfc/rfc6455.html#section-7.4.2
b69ab3111 */
b69ab3112export const CLOSED_AND_SHOULD_NOT_RECONNECT_CODE = 4100;
b69ab3113
b69ab3114export const ONE_MINUTE_MS = 60_000;
b69ab3115
b69ab3116export const DEFAULT_DAYS_OF_COMMITS_TO_LOAD = 14;
b69ab3117
b69ab3118/**
b69ab3119 * Short error messages sent from the server to the client.
b69ab3120 * Usually, the client will intercept and re-render these with more details + i18n.
b69ab3121 */
b69ab3122export enum ErrorShortMessages {
b69ab3123 NoCommitsFetched = 'No commits found',
b69ab3124}