mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-10 02:25:56 +00:00
205df735c7
Large estates that exceed the WebSocket frame ceiling recover over an uncompressed /api/state poll loop, which made the biggest deployments pay the heaviest transfer cost. Wrap the main HTTP handler in a gzip middleware that compresses JSON and other text responses roughly an order of magnitude, while leaving WebSocket upgrades, SSE streams, Range requests, small declared bodies, and binary content untouched. Contract-Neutral: transport-only gzip response middleware, no RBAC or persistence semantics change