This commit is contained in:
Alex Hultman 2020-08-07 15:07:22 +02:00
commit 999a00d1bc
2 changed files with 3 additions and 2 deletions

View File

@ -59,9 +59,10 @@ Being written in native code directly targeting the Linux kernel makes it way fa
### :package: Install anywhere
Install with `npm install uNetworking/uWebSockets.js#v18.3.0` or any such release. No compiler needed.
Install with `npm install uNetworking/uWebSockets.js#v18.4.0` or any such release. No compiler needed.
* Runs on Linux (x64, ARM64), macOS (x64) and Windows (x64). Node.js 10, 11, 12, 13 & 14.
* Installs from this GitHub repo, not the NPM registry. Production apps should rely on their own local copy.
### :briefcase: Commercially supported
<a href="https://github.com/uNetworking">uNetworking AB</a> is a Swedish consulting & contracting company dealing with anything related to µWebSockets; development, support and customer success.

View File

@ -152,7 +152,7 @@ struct HttpResponseWrapper {
/* This thing perfectly fits in with unique_function, and will Reset on destructor */
UniquePersistent<Function> p(isolate, Local<Function>::Cast(args[0]));
res->onWritable([p = std::move(p), isolate](int offset) -> bool {
res->onWritable([p = std::move(p), isolate](size_t offset) -> bool {
HandleScope hs(isolate);
Local<Value> argv[] = {Number::New(isolate, offset)};