import type { RoomId } from "./types.socket.js"; export const MAX_HISTORY = 50; export const FLUSH_INTERVAL = 100; // 50ms change higher if needed export const roomHistory = new Map(); export const roomBuffers = new Map(); export const roomFlushTimers = new Map();