]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
refactor(ui-server): unify HTTP and WebSocket payload size limits
authorJérôme Benoit <jerome.benoit@sap.com>
Thu, 12 Feb 2026 18:29:31 +0000 (19:29 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Thu, 12 Feb 2026 18:29:31 +0000 (19:29 +0100)
commit215f979f2745bd8e1f8b08c211def03d4a721206
tree03fcb452378dfefc6bd9ed663edec2df5d82c135
parent7cbc7c7e54aa516bd56b8778990d6a7df7e32f33
refactor(ui-server): unify HTTP and WebSocket payload size limits

Merge DEFAULT_MAX_BODY_SIZE and DEFAULT_WS_MAX_PAYLOAD into single
DEFAULT_MAX_PAYLOAD_SIZE constant (1MB). Both represent the same
semantic: UI protocol payload limit over different transport layers.

Also increases WebSocket limit from 100KB to 1MB to match HTTP,
allowing ~200-300 charging stations in list responses.
src/charging-station/ui-server/UIHttpServer.ts
src/charging-station/ui-server/UIServerSecurity.ts
src/charging-station/ui-server/UIWebSocketServer.ts