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