Add SHARED and DEDICATED compressor options

This commit is contained in:
Alex Hultman
2018-12-22 05:58:26 +01:00
parent f8e299c312
commit 038111fb98
8 changed files with 114 additions and 91 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ int main(int argc, char **argv) {
res->end("Hello HTTP!");
}).ws<PerSocketData>("/*", {
/* Settings */
.compression = true,
.compression = uWS::DEDICATED_COMPRESSOR,
.maxPayloadLength = 16 * 1024,
/* Handlers */
.open = [](auto *ws, auto *req) {