From 9f2c3b87745cc83a20ea744d30ec901050a6f593 Mon Sep 17 00:00:00 2001 From: Alex Hultman Date: Fri, 1 Oct 2021 03:31:11 +0200 Subject: [PATCH] Use uWS 20 --- src/addon.cpp | 1 + uWebSockets | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/addon.cpp b/src/addon.cpp index 85eec36..80783f2 100644 --- a/src/addon.cpp +++ b/src/addon.cpp @@ -376,6 +376,7 @@ PerContextData *Main(Local exports) { /* Compression enum */ exports->Set(isolate->GetCurrentContext(), String::NewFromUtf8(isolate, "DISABLED", NewStringType::kNormal).ToLocalChecked(), Integer::NewFromUnsigned(isolate, uWS::DISABLED)).ToChecked(); exports->Set(isolate->GetCurrentContext(), String::NewFromUtf8(isolate, "SHARED_COMPRESSOR", NewStringType::kNormal).ToLocalChecked(), Integer::NewFromUnsigned(isolate, uWS::SHARED_COMPRESSOR)).ToChecked(); + exports->Set(isolate->GetCurrentContext(), String::NewFromUtf8(isolate, "DEDICATED_DECOMPRESSOR", NewStringType::kNormal).ToLocalChecked(), Integer::NewFromUnsigned(isolate, uWS::DEDICATED_DECOMPRESSOR)).ToChecked(); exports->Set(isolate->GetCurrentContext(), String::NewFromUtf8(isolate, "DEDICATED_COMPRESSOR", NewStringType::kNormal).ToLocalChecked(), Integer::NewFromUnsigned(isolate, uWS::DEDICATED_COMPRESSOR)).ToChecked(); exports->Set(isolate->GetCurrentContext(), String::NewFromUtf8(isolate, "DEDICATED_COMPRESSOR_3KB", NewStringType::kNormal).ToLocalChecked(), Integer::NewFromUnsigned(isolate, uWS::DEDICATED_COMPRESSOR_3KB)).ToChecked(); exports->Set(isolate->GetCurrentContext(), String::NewFromUtf8(isolate, "DEDICATED_COMPRESSOR_4KB", NewStringType::kNormal).ToLocalChecked(), Integer::NewFromUnsigned(isolate, uWS::DEDICATED_COMPRESSOR_4KB)).ToChecked(); diff --git a/uWebSockets b/uWebSockets index 6393f97..7956546 160000 --- a/uWebSockets +++ b/uWebSockets @@ -1 +1 @@ -Subproject commit 6393f97bfb95e4c9817e7e5a04f88dfb947667fc +Subproject commit 7956546836904402ad18a00a1aa033c7a9c5c5ab