diff options
author | Sam Wilkins <samwilkins333@gmail.com> | 2019-12-14 02:00:36 -0500 |
---|---|---|
committer | Sam Wilkins <samwilkins333@gmail.com> | 2019-12-14 02:00:36 -0500 |
commit | 2fbd5cdd6eec76d1b0533e325e60a2c53ba62078 (patch) | |
tree | 7d205701bdbb3b6f0d6e395ec37d841e809c430c /src/server/session_manager/config.ts | |
parent | 4a0cd5a75d6f77067ee5d119012c489d73ffb649 (diff) |
factored out repl into module
Diffstat (limited to 'src/server/session_manager/config.ts')
-rw-r--r-- | src/server/session_manager/config.ts | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/server/session_manager/config.ts b/src/server/session_manager/config.ts new file mode 100644 index 000000000..47d3375e0 --- /dev/null +++ b/src/server/session_manager/config.ts @@ -0,0 +1,32 @@ +import { resolve } from 'path'; +import { yellow } from "colors"; + +export const latency = 10; +export const ports = [1050, 4321]; +export const onWindows = process.platform === "win32"; +export const LOCATION = "http://localhost"; +export const heartbeat = `${LOCATION}:1050/serverHeartbeat`; +export const recipient = "samuel_wilkins@brown.edu"; +export const { pid, platform } = process; + +/** + * Logging + */ +export const identifier = yellow("__session_manager__:"); + +/** + * Paths + */ +export const logPath = resolve(__dirname, "./logs"); +export const crashPath = resolve(logPath, "./crashes"); + +/** + * State + */ +export enum SessionState { + INITIALIZING, + LISTENING, + AUTOMATIC_RESTART, + MANUAL_RESTART, + EXITING +}
\ No newline at end of file |