mirror of
https://github.com/uNetworking/uWebSockets.js.git
synced 2026-03-28 14:00:05 -04:00
* Initial plan * Fix maxLifetime: 240 causing immediate WebSocket disconnection Cap maxLifetime at 239 in AppWrapper.h to prevent uSockets modulo wraparound bug (240 % 240 == current timestamp => instant timeout). Also clamp to non-negative values. Update TypeScript docs to document valid range as 0 | 1-239. Co-authored-by: uNetworkingAB <110806833+uNetworkingAB@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: uNetworkingAB <110806833+uNetworkingAB@users.noreply.github.com>