Commit Graph

278 Commits

Author SHA1 Message Date
copilot-swe-agent[bot]
221ec5029f Update uWebSockets submodule and wrap onDataV2 instead of maxRemainingBodyLength()
Co-authored-by: uNetworkingAB <110806833+uNetworkingAB@users.noreply.github.com>
Agent-Logs-Url: https://github.com/uNetworking/uWebSockets.js/sessions/7381342f-ed36-4f1c-ad98-304260ebef6e
2026-03-20 18:37:21 +00:00
Copilot
5ff1c5497b Implement onStream: unified body streaming + abort callback (#1246)
* Initial plan

* Implement onStream C++ function and add TypeScript type definition

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>
2026-03-15 12:43:55 +01:00
uNetworkingAB
23d0f7a32a Fix WebSocket send function buffer handling
Refactor WebSocket send function to handle ArrayBuffer and ArrayBufferView correctly.
2026-03-15 02:07:59 +01:00
uNetworkingAB
fb05cc7ccf Fix send_fast_buffer to use correct opcode 2026-03-15 01:55:59 +01:00
uNetworkingAB
e3ff2c441e Add debug print statement for fast buffer path 2026-03-15 01:37:14 +01:00
uNetworkingAB
9593774f70 Fix fast_send function reference in WebSocketWrapper 2026-03-15 01:27:35 +01:00
uNetworkingAB
1786528aaf Add fast send methods for strings and buffers 2026-03-15 01:17:39 +01:00
uNetworkingAB
3f16489c5c Change ConstructorBehavior for WebSocket send method 2026-03-15 01:03:41 +01:00
uNetworkingAB
bbdd3d30d9 Try this 2026-03-15 00:43:28 +01:00
uNetworkingAB
5d15b9e75c Update fast_send to use fallback support 2026-03-15 00:21:18 +01:00
uNetworkingAB
8c94af5867 Change WebSocket send method to use FastOneByteString 2026-03-14 23:54:47 +01:00
uNetworkingAB
6ccdfbcbb8 Delete src/v8-fast-api-calls.h 2026-03-14 23:16:22 +01:00
Copilot
7c1272e536 Add V8 fast call path for WebSocket.send (#1242)
* Initial plan

* Implement V8 fast call API for hot-path WebSocket and HTTP response functions

Co-authored-by: uNetworkingAB <110806833+uNetworkingAB@users.noreply.github.com>

* Pare back V8 fast call to WebSocketWrapper.send only

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>
2026-03-14 22:51:49 +01:00
uNetworkingAB
76769b3a2c Call onAborted from onFullData
Capture the response object and handle abortion in onFullData.
2026-03-12 15:31:06 +01:00
uNetworkingAB
8bc7242dfd onFullData is not available for H3 2026-03-12 10:10:50 +01:00
uNetworkingAB
379ffb7735 Too much JS 2026-03-12 09:44:41 +01:00
uNetworkingAB
01328547ba Preallocate in onFullData
Refactor onData callback to include response object and preallocate buffer size.
2026-03-12 09:43:03 +01:00
Copilot
64b8e58f47 Add maxRemainingBodyLength() wrapper and update uWebSockets submodule (#1237)
* Initial plan

* Add maxRemainingBodyLength wrapper and update uWebSockets submodule

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>
2026-03-12 09:21:05 +01:00
Copilot
3d3dd051ca Revert "Add HttpResponse.writeHeaders" (#1234)
* Initial plan

* Revert "Add HttpResponse.writeHeaders"

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>
2026-03-11 21:18:08 +01:00
Copilot
0305f8f21a Fix fatal V8 crash when passing undefined as App options (#1232)
* Initial plan

* Fix issue #1102: add missing check in readOptionsObject to throw exception instead of fatal error

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>
2026-03-11 20:43:10 +01:00
Copilot
af7015b40e Fix maxLifetime: 240 causing immediate WebSocket disconnection (#1231)
* 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>
2026-03-11 20:30:48 +01:00
Copilot
9aeea4e715 Support symbol-keyed properties in WebSocket UserData (#1228)
* Initial plan

* Fix: Support symbol keys in UserData for WebSocket upgrade (issue #1184)

Co-authored-by: uNetworkingAB <110806833+uNetworkingAB@users.noreply.github.com>

* Remove accidentally committed build artifacts and add .gitignore

Co-authored-by: uNetworkingAB <110806833+uNetworkingAB@users.noreply.github.com>

* Delete .gitignore

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: uNetworkingAB <110806833+uNetworkingAB@users.noreply.github.com>
2026-03-11 19:40:42 +01:00
Shachar-Brightdata
bb831f0faf Add getRemotePort bindings (#1162) 2026-03-11 19:32:27 +01:00
Copilot
b03dd9d6d2 Add HttpResponse.writeHeaders (#1227)
* Initial plan

* Add HttpResponse.writeHeaders method

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>
2026-03-11 18:41:05 +01:00
Copilot
b0a1028301 HttpResponse: add onFullData with zero-copy fast path and lazy allocation (#1225)
* Initial plan

* Add onFullData to HttpResponseWrapper for accumulating POST body data

Co-authored-by: uNetworkingAB <110806833+uNetworkingAB@users.noreply.github.com>

* onFullData: fast paths, zero-copy, lazy allocation

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>
2026-03-11 15:03:58 +01:00
Copilot
891cb0b0a0 Update licensing comment year to 2026 across all source files (#1216)
* Initial plan

* Update licensing comment year to 2026 in all source files

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>
2026-03-07 14:34:18 +01:00
BV-WebDev
0e628dbf66 Update DeclarativeResponse: add writeStatus support (#1213) 2026-03-07 11:59:59 +01:00
BV-WebDev
060e441053 Update DeclarativeResponse: add binary support (#1214) 2026-03-07 11:59:21 +01:00
uNetworkingAB
a77a010d23 Update error message for uWS.js version 20.60.0 2026-03-06 10:26:23 +01:00
uNetworkingAB
18fe585881 Update error message for uWS.js version 20.59.0 2026-03-05 08:50:58 +01:00
uNetworkingAB
06e58959f3 Modify end method to handle non-string values 2026-03-03 08:43:24 +01:00
uNetworkingAB
efca42bfc0 Update author year and version in uws.js 2026-02-24 00:51:51 +01:00
uNetworkingAB
ff48755d2f getParts needs to copy the parts until a better interface can replace this 2025-11-28 03:55:49 +01:00
uNetworkingAB
1c3746c6e4 Update author year and version in uws.js 2025-11-05 20:07:17 +01:00
uNetworkingAB
55ddc9b661 Update addon.cpp 2025-11-05 15:17:25 +01:00
uNetworkingAB
ba8fb23043 Comment out '_cfg' function export
Commented out the export of the '_cfg' function.
2025-10-24 12:04:45 +02:00
uNetworkingAB
e1270451a9 Update error message for uWS.js version 20.55.0 2025-10-21 02:44:32 +02:00
uNetworkingAB
f6f960af86 Update error message for uWS.js version 2025-10-20 13:04:43 +02:00
uNetworkingAB
acfe43dec4 Update uws.js 2025-10-20 02:43:08 +02:00
uNetworkingAB
30e9695844 Update supported Node.js versions in error message 2025-10-20 02:42:29 +02:00
uNetworkingAB
30cea0c4e5 Update uws.js 2025-05-08 00:31:05 +02:00
uNetworkingAB
d8ae939473 Update AppWrapper.h 2025-05-07 23:45:33 +02:00
uNetworkingAB
3dda2d6472 Update HttpResponseWrapper.h 2025-05-07 23:44:35 +02:00
uNetworkingAB
5649f3daad Update HttpRequestWrapper.h 2025-05-07 23:43:58 +02:00
uNetworkingAB
fbafa7aa1c Update WebSocketWrapper.h 2025-05-07 23:43:28 +02:00
uNetworkingAB
14bb3af678 Update uws.js 2024-11-25 16:22:33 +01:00
uNetworkingAB
003f2a8643 Update uws.js 2024-11-25 15:37:20 +01:00
Alex Hultman
ea2947df3e Reenable http 2024-11-25 15:31:41 +01:00
uNetworkingAB
1ff6f64b0c Update uws.js 2024-11-24 17:54:43 +01:00
Alex Hultman
97701d0c4a Disable experimental HTTP cache support, bump uWS 2024-11-21 23:37:57 +01:00