feat(shared): reorder AppError constructor to (message, code, status), add singleton logger, retry and TTL cache utilities

This commit is contained in:
MythEclipse
2026-06-02 21:06:42 +07:00
parent 9045e7e347
commit 2d79d8aefd
50 changed files with 401 additions and 449 deletions
+1 -2
View File
@@ -1,6 +1,6 @@
import type { Server } from "node:http";
import { WebSocket, WebSocketServer } from "ws";
import { createChildLogger } from "../shared/logger/index.js";
import { createChildLogger } from "@bete/shared/logger";
const logger = createChildLogger("ws.server");
@@ -10,7 +10,6 @@ interface BroadcastEvent {
timestamp: string;
}
// Extend globalThis with broadcast function types
declare global {
var __broadcastFns:
| {