9 lines
325 B
TypeScript
9 lines
325 B
TypeScript
import type { RoomId } from "./types.socket.js";
|
|
|
|
export const MAX_HISTORY = 20;
|
|
export const FLUSH_INTERVAL = 100; // 50ms change higher if needed
|
|
|
|
export const roomHistory = new Map<RoomId, unknown[]>();
|
|
export const roomBuffers = new Map<RoomId, any[]>();
|
|
export const roomFlushTimers = new Map<RoomId, NodeJS.Timeout>();
|