778 B25 lines
Blame
1/**
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7
8/**
9 * User-defined code for websocket close that tells the client not to continue reconnecting.
10 * User-defined codes are in the range 3000-4999: https://www.rfc-editor.org/rfc/rfc6455.html#section-7.4.2
11 */
12export const CLOSED_AND_SHOULD_NOT_RECONNECT_CODE = 4100;
13
14export const ONE_MINUTE_MS = 60_000;
15
16export const DEFAULT_DAYS_OF_COMMITS_TO_LOAD = 14;
17
18/**
19 * Short error messages sent from the server to the client.
20 * Usually, the client will intercept and re-render these with more details + i18n.
21 */
22export enum ErrorShortMessages {
23 NoCommitsFetched = 'No commits found',
24}
25