Only changes besides the move: `export` on helpers another module now needs (sendError, sendJson, splitUrl, GzipCache, isNotModified, serveFile, serveMedia, noopLog, makeLogger), ROOT resolves two levels up from server/http/config.js (same path), and short headers on the new files.
5 lines
178 B
JavaScript
5 lines
178 B
JavaScript
// server/http/websocket.js — the WebSocket endpoint (moved from server/index.js).
|
|
|
|
/** Inbound WebSocket frame limit (DESIGN §8). */
|
|
export const WS_MAX_PAYLOAD = 64 * 1024;
|