feat: implement one-port WebSocket server with updated connection handling and configuration

This commit is contained in:
MythEclipse
2026-05-13 17:49:33 +07:00
parent f9a4b4a92d
commit 0e056732bc
5 changed files with 188 additions and 19 deletions
+3 -1
View File
@@ -24,7 +24,9 @@ const configSchema = z.object({
AUDIO_CHANNELS: z.coerce.number().positive().default(2),
AVATAR_SIZE: z.coerce.number().positive().default(64),
LOG_LEVEL: z.enum(["debug", "info", "warn", "error"]).default("info"),
NODE_ENV: z.enum(["development", "production"]).default("development"),
NODE_ENV: z
.enum(["development", "production", "test"])
.default("development"),
});
export type AppConfig = z.infer<typeof configSchema>;