From f9c3cf48a58e492800231baf5e4e08c86ee00b48 Mon Sep 17 00:00:00 2001 From: Alex Hultman Date: Sun, 1 Mar 2020 01:26:30 +0100 Subject: [PATCH] Update uWS, wrap new compressOptions, update docs --- docs/Makefile | 2 +- docs/generated/assets/js/search.js | 2 +- docs/generated/index.html | 176 ++++++++++++++++-- docs/generated/interfaces/appoptions.html | 38 +++- docs/generated/interfaces/httprequest.html | 42 ++++- docs/generated/interfaces/httpresponse.html | 52 ++++-- docs/generated/interfaces/templatedapp.html | 56 ++++-- .../interfaces/us_listen_socket.html | 28 ++- docs/generated/interfaces/websocket.html | 50 +++-- .../interfaces/websocketbehavior.html | 44 ++++- docs/index.d.ts | 19 +- src/addon.cpp | 10 + uWebSockets | 2 +- 13 files changed, 434 insertions(+), 87 deletions(-) diff --git a/docs/Makefile b/docs/Makefile index fc8d90a1..3ac70d32 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -1,2 +1,2 @@ default: - typedoc --out generated --includeDeclarations --excludeExternals --name "uWebSockets.js v17.1.0 documentation" --mode file --readme none . + typedoc --out generated --includeDeclarations --excludeExternals --name "uWebSockets.js v17.3.0 documentation" --mode file --readme none . diff --git a/docs/generated/assets/js/search.js b/docs/generated/assets/js/search.js index 4bea3992..94889f9a 100644 --- a/docs/generated/assets/js/search.js +++ b/docs/generated/assets/js/search.js @@ -1,3 +1,3 @@ var typedoc = typedoc || {}; typedoc.search = typedoc.search || {}; - typedoc.search.data = {"kinds":{"32":"Variable","64":"Function","256":"Interface","1024":"Property","2048":"Method","65536":"Type literal","4194304":"Type alias"},"rows":[{"id":0,"kind":256,"name":"us_listen_socket","url":"interfaces/us_listen_socket.html","classes":"tsd-kind-interface"},{"id":1,"kind":256,"name":"WebSocket","url":"interfaces/websocket.html","classes":"tsd-kind-interface"},{"id":2,"kind":2048,"name":"send","url":"interfaces/websocket.html#send","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"WebSocket"},{"id":3,"kind":2048,"name":"getBufferedAmount","url":"interfaces/websocket.html#getbufferedamount","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"WebSocket"},{"id":4,"kind":2048,"name":"end","url":"interfaces/websocket.html#end","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"WebSocket"},{"id":5,"kind":2048,"name":"close","url":"interfaces/websocket.html#close","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"WebSocket"},{"id":6,"kind":2048,"name":"ping","url":"interfaces/websocket.html#ping","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"WebSocket"},{"id":7,"kind":2048,"name":"subscribe","url":"interfaces/websocket.html#subscribe","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"WebSocket"},{"id":8,"kind":2048,"name":"unsubscribe","url":"interfaces/websocket.html#unsubscribe","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"WebSocket"},{"id":9,"kind":2048,"name":"unsubscribeAll","url":"interfaces/websocket.html#unsubscribeall","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"WebSocket"},{"id":10,"kind":2048,"name":"publish","url":"interfaces/websocket.html#publish","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"WebSocket"},{"id":11,"kind":2048,"name":"cork","url":"interfaces/websocket.html#cork","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"WebSocket"},{"id":12,"kind":2048,"name":"getRemoteAddress","url":"interfaces/websocket.html#getremoteaddress","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"WebSocket"},{"id":13,"kind":256,"name":"HttpResponse","url":"interfaces/httpresponse.html","classes":"tsd-kind-interface"},{"id":14,"kind":2048,"name":"writeStatus","url":"interfaces/httpresponse.html#writestatus","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpResponse"},{"id":15,"kind":2048,"name":"writeHeader","url":"interfaces/httpresponse.html#writeheader","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpResponse"},{"id":16,"kind":2048,"name":"write","url":"interfaces/httpresponse.html#write","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpResponse"},{"id":17,"kind":2048,"name":"end","url":"interfaces/httpresponse.html#end","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpResponse"},{"id":18,"kind":2048,"name":"tryEnd","url":"interfaces/httpresponse.html#tryend","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpResponse"},{"id":19,"kind":2048,"name":"close","url":"interfaces/httpresponse.html#close","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpResponse"},{"id":20,"kind":2048,"name":"getWriteOffset","url":"interfaces/httpresponse.html#getwriteoffset","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpResponse"},{"id":21,"kind":2048,"name":"onWritable","url":"interfaces/httpresponse.html#onwritable","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpResponse"},{"id":22,"kind":2048,"name":"onAborted","url":"interfaces/httpresponse.html#onaborted","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpResponse"},{"id":23,"kind":2048,"name":"onData","url":"interfaces/httpresponse.html#ondata","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpResponse"},{"id":24,"kind":2048,"name":"getRemoteAddress","url":"interfaces/httpresponse.html#getremoteaddress","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpResponse"},{"id":25,"kind":2048,"name":"cork","url":"interfaces/httpresponse.html#cork","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpResponse"},{"id":26,"kind":256,"name":"HttpRequest","url":"interfaces/httprequest.html","classes":"tsd-kind-interface"},{"id":27,"kind":2048,"name":"getHeader","url":"interfaces/httprequest.html#getheader","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpRequest"},{"id":28,"kind":2048,"name":"getParameter","url":"interfaces/httprequest.html#getparameter","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpRequest"},{"id":29,"kind":2048,"name":"getUrl","url":"interfaces/httprequest.html#geturl","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpRequest"},{"id":30,"kind":2048,"name":"getMethod","url":"interfaces/httprequest.html#getmethod","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpRequest"},{"id":31,"kind":2048,"name":"getQuery","url":"interfaces/httprequest.html#getquery","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpRequest"},{"id":32,"kind":2048,"name":"forEach","url":"interfaces/httprequest.html#foreach","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpRequest"},{"id":33,"kind":2048,"name":"setYield","url":"interfaces/httprequest.html#setyield","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpRequest"},{"id":34,"kind":256,"name":"WebSocketBehavior","url":"interfaces/websocketbehavior.html","classes":"tsd-kind-interface"},{"id":35,"kind":1024,"name":"maxPayloadLength","url":"interfaces/websocketbehavior.html#maxpayloadlength","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"WebSocketBehavior"},{"id":36,"kind":1024,"name":"idleTimeout","url":"interfaces/websocketbehavior.html#idletimeout","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"WebSocketBehavior"},{"id":37,"kind":1024,"name":"compression","url":"interfaces/websocketbehavior.html#compression","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"WebSocketBehavior"},{"id":38,"kind":1024,"name":"maxBackpressure","url":"interfaces/websocketbehavior.html#maxbackpressure","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"WebSocketBehavior"},{"id":39,"kind":1024,"name":"open","url":"interfaces/websocketbehavior.html#open","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"WebSocketBehavior"},{"id":40,"kind":65536,"name":"__type","url":"interfaces/websocketbehavior.html#open.__type-3","classes":"tsd-kind-type-literal tsd-parent-kind-property tsd-is-not-exported","parent":"WebSocketBehavior.open"},{"id":41,"kind":1024,"name":"message","url":"interfaces/websocketbehavior.html#message","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"WebSocketBehavior"},{"id":42,"kind":65536,"name":"__type","url":"interfaces/websocketbehavior.html#message.__type-2","classes":"tsd-kind-type-literal tsd-parent-kind-property tsd-is-not-exported","parent":"WebSocketBehavior.message"},{"id":43,"kind":1024,"name":"drain","url":"interfaces/websocketbehavior.html#drain","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"WebSocketBehavior"},{"id":44,"kind":65536,"name":"__type","url":"interfaces/websocketbehavior.html#drain.__type-1","classes":"tsd-kind-type-literal tsd-parent-kind-property tsd-is-not-exported","parent":"WebSocketBehavior.drain"},{"id":45,"kind":1024,"name":"close","url":"interfaces/websocketbehavior.html#close","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"WebSocketBehavior"},{"id":46,"kind":65536,"name":"__type","url":"interfaces/websocketbehavior.html#close.__type","classes":"tsd-kind-type-literal tsd-parent-kind-property tsd-is-not-exported","parent":"WebSocketBehavior.close"},{"id":47,"kind":256,"name":"AppOptions","url":"interfaces/appoptions.html","classes":"tsd-kind-interface"},{"id":48,"kind":1024,"name":"key_file_name","url":"interfaces/appoptions.html#key_file_name","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"AppOptions"},{"id":49,"kind":1024,"name":"cert_file_name","url":"interfaces/appoptions.html#cert_file_name","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"AppOptions"},{"id":50,"kind":1024,"name":"passphrase","url":"interfaces/appoptions.html#passphrase","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"AppOptions"},{"id":51,"kind":1024,"name":"dh_params_file_name","url":"interfaces/appoptions.html#dh_params_file_name","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"AppOptions"},{"id":52,"kind":1024,"name":"ssl_prefer_low_memory_usage","url":"interfaces/appoptions.html#ssl_prefer_low_memory_usage","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"AppOptions"},{"id":53,"kind":256,"name":"TemplatedApp","url":"interfaces/templatedapp.html","classes":"tsd-kind-interface"},{"id":54,"kind":2048,"name":"listen","url":"interfaces/templatedapp.html#listen","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"TemplatedApp"},{"id":55,"kind":2048,"name":"get","url":"interfaces/templatedapp.html#get","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"TemplatedApp"},{"id":56,"kind":2048,"name":"post","url":"interfaces/templatedapp.html#post","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"TemplatedApp"},{"id":57,"kind":2048,"name":"options","url":"interfaces/templatedapp.html#options","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"TemplatedApp"},{"id":58,"kind":2048,"name":"del","url":"interfaces/templatedapp.html#del","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"TemplatedApp"},{"id":59,"kind":2048,"name":"patch","url":"interfaces/templatedapp.html#patch","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"TemplatedApp"},{"id":60,"kind":2048,"name":"put","url":"interfaces/templatedapp.html#put","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"TemplatedApp"},{"id":61,"kind":2048,"name":"head","url":"interfaces/templatedapp.html#head","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"TemplatedApp"},{"id":62,"kind":2048,"name":"connect","url":"interfaces/templatedapp.html#connect","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"TemplatedApp"},{"id":63,"kind":2048,"name":"trace","url":"interfaces/templatedapp.html#trace","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"TemplatedApp"},{"id":64,"kind":2048,"name":"any","url":"interfaces/templatedapp.html#any","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"TemplatedApp"},{"id":65,"kind":2048,"name":"ws","url":"interfaces/templatedapp.html#ws","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"TemplatedApp"},{"id":66,"kind":2048,"name":"publish","url":"interfaces/templatedapp.html#publish","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"TemplatedApp"},{"id":67,"kind":4194304,"name":"RecognizedString","url":"index.html#recognizedstring","classes":"tsd-kind-type-alias"},{"id":68,"kind":64,"name":"App","url":"index.html#app","classes":"tsd-kind-function"},{"id":69,"kind":64,"name":"SSLApp","url":"index.html#sslapp","classes":"tsd-kind-function"},{"id":70,"kind":64,"name":"us_listen_socket_close","url":"index.html#us_listen_socket_close","classes":"tsd-kind-function"},{"id":71,"kind":4194304,"name":"CompressOptions","url":"index.html#compressoptions","classes":"tsd-kind-type-alias"},{"id":72,"kind":32,"name":"DISABLED","url":"index.html#disabled","classes":"tsd-kind-variable"},{"id":73,"kind":32,"name":"SHARED_COMPRESSOR","url":"index.html#shared_compressor","classes":"tsd-kind-variable"},{"id":74,"kind":32,"name":"DEDICATED_COMPRESSOR","url":"index.html#dedicated_compressor","classes":"tsd-kind-variable"}]}; \ No newline at end of file + typedoc.search.data = {"kinds":{"32":"Variable","64":"Function","256":"Interface","1024":"Property","2048":"Method","65536":"Type literal","4194304":"Type alias"},"rows":[{"id":0,"kind":256,"name":"us_listen_socket","url":"interfaces/us_listen_socket.html","classes":"tsd-kind-interface"},{"id":1,"kind":256,"name":"WebSocket","url":"interfaces/websocket.html","classes":"tsd-kind-interface"},{"id":2,"kind":2048,"name":"send","url":"interfaces/websocket.html#send","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"WebSocket"},{"id":3,"kind":2048,"name":"getBufferedAmount","url":"interfaces/websocket.html#getbufferedamount","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"WebSocket"},{"id":4,"kind":2048,"name":"end","url":"interfaces/websocket.html#end","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"WebSocket"},{"id":5,"kind":2048,"name":"close","url":"interfaces/websocket.html#close","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"WebSocket"},{"id":6,"kind":2048,"name":"ping","url":"interfaces/websocket.html#ping","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"WebSocket"},{"id":7,"kind":2048,"name":"subscribe","url":"interfaces/websocket.html#subscribe","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"WebSocket"},{"id":8,"kind":2048,"name":"unsubscribe","url":"interfaces/websocket.html#unsubscribe","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"WebSocket"},{"id":9,"kind":2048,"name":"unsubscribeAll","url":"interfaces/websocket.html#unsubscribeall","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"WebSocket"},{"id":10,"kind":2048,"name":"publish","url":"interfaces/websocket.html#publish","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"WebSocket"},{"id":11,"kind":2048,"name":"cork","url":"interfaces/websocket.html#cork","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"WebSocket"},{"id":12,"kind":2048,"name":"getRemoteAddress","url":"interfaces/websocket.html#getremoteaddress","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"WebSocket"},{"id":13,"kind":256,"name":"HttpResponse","url":"interfaces/httpresponse.html","classes":"tsd-kind-interface"},{"id":14,"kind":2048,"name":"writeStatus","url":"interfaces/httpresponse.html#writestatus","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpResponse"},{"id":15,"kind":2048,"name":"writeHeader","url":"interfaces/httpresponse.html#writeheader","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpResponse"},{"id":16,"kind":2048,"name":"write","url":"interfaces/httpresponse.html#write","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpResponse"},{"id":17,"kind":2048,"name":"end","url":"interfaces/httpresponse.html#end","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpResponse"},{"id":18,"kind":2048,"name":"tryEnd","url":"interfaces/httpresponse.html#tryend","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpResponse"},{"id":19,"kind":2048,"name":"close","url":"interfaces/httpresponse.html#close","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpResponse"},{"id":20,"kind":2048,"name":"getWriteOffset","url":"interfaces/httpresponse.html#getwriteoffset","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpResponse"},{"id":21,"kind":2048,"name":"onWritable","url":"interfaces/httpresponse.html#onwritable","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpResponse"},{"id":22,"kind":2048,"name":"onAborted","url":"interfaces/httpresponse.html#onaborted","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpResponse"},{"id":23,"kind":2048,"name":"onData","url":"interfaces/httpresponse.html#ondata","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpResponse"},{"id":24,"kind":2048,"name":"getRemoteAddress","url":"interfaces/httpresponse.html#getremoteaddress","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpResponse"},{"id":25,"kind":2048,"name":"cork","url":"interfaces/httpresponse.html#cork","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpResponse"},{"id":26,"kind":256,"name":"HttpRequest","url":"interfaces/httprequest.html","classes":"tsd-kind-interface"},{"id":27,"kind":2048,"name":"getHeader","url":"interfaces/httprequest.html#getheader","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpRequest"},{"id":28,"kind":2048,"name":"getParameter","url":"interfaces/httprequest.html#getparameter","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpRequest"},{"id":29,"kind":2048,"name":"getUrl","url":"interfaces/httprequest.html#geturl","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpRequest"},{"id":30,"kind":2048,"name":"getMethod","url":"interfaces/httprequest.html#getmethod","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpRequest"},{"id":31,"kind":2048,"name":"getQuery","url":"interfaces/httprequest.html#getquery","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpRequest"},{"id":32,"kind":2048,"name":"forEach","url":"interfaces/httprequest.html#foreach","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpRequest"},{"id":33,"kind":2048,"name":"setYield","url":"interfaces/httprequest.html#setyield","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"HttpRequest"},{"id":34,"kind":256,"name":"WebSocketBehavior","url":"interfaces/websocketbehavior.html","classes":"tsd-kind-interface"},{"id":35,"kind":1024,"name":"maxPayloadLength","url":"interfaces/websocketbehavior.html#maxpayloadlength","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"WebSocketBehavior"},{"id":36,"kind":1024,"name":"idleTimeout","url":"interfaces/websocketbehavior.html#idletimeout","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"WebSocketBehavior"},{"id":37,"kind":1024,"name":"compression","url":"interfaces/websocketbehavior.html#compression","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"WebSocketBehavior"},{"id":38,"kind":1024,"name":"maxBackpressure","url":"interfaces/websocketbehavior.html#maxbackpressure","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"WebSocketBehavior"},{"id":39,"kind":1024,"name":"open","url":"interfaces/websocketbehavior.html#open","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"WebSocketBehavior"},{"id":40,"kind":65536,"name":"__type","url":"interfaces/websocketbehavior.html#open.__type-3","classes":"tsd-kind-type-literal tsd-parent-kind-property tsd-is-not-exported","parent":"WebSocketBehavior.open"},{"id":41,"kind":1024,"name":"message","url":"interfaces/websocketbehavior.html#message","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"WebSocketBehavior"},{"id":42,"kind":65536,"name":"__type","url":"interfaces/websocketbehavior.html#message.__type-2","classes":"tsd-kind-type-literal tsd-parent-kind-property tsd-is-not-exported","parent":"WebSocketBehavior.message"},{"id":43,"kind":1024,"name":"drain","url":"interfaces/websocketbehavior.html#drain","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"WebSocketBehavior"},{"id":44,"kind":65536,"name":"__type","url":"interfaces/websocketbehavior.html#drain.__type-1","classes":"tsd-kind-type-literal tsd-parent-kind-property tsd-is-not-exported","parent":"WebSocketBehavior.drain"},{"id":45,"kind":1024,"name":"close","url":"interfaces/websocketbehavior.html#close","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"WebSocketBehavior"},{"id":46,"kind":65536,"name":"__type","url":"interfaces/websocketbehavior.html#close.__type","classes":"tsd-kind-type-literal tsd-parent-kind-property tsd-is-not-exported","parent":"WebSocketBehavior.close"},{"id":47,"kind":256,"name":"AppOptions","url":"interfaces/appoptions.html","classes":"tsd-kind-interface"},{"id":48,"kind":1024,"name":"key_file_name","url":"interfaces/appoptions.html#key_file_name","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"AppOptions"},{"id":49,"kind":1024,"name":"cert_file_name","url":"interfaces/appoptions.html#cert_file_name","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"AppOptions"},{"id":50,"kind":1024,"name":"passphrase","url":"interfaces/appoptions.html#passphrase","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"AppOptions"},{"id":51,"kind":1024,"name":"dh_params_file_name","url":"interfaces/appoptions.html#dh_params_file_name","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"AppOptions"},{"id":52,"kind":1024,"name":"ssl_prefer_low_memory_usage","url":"interfaces/appoptions.html#ssl_prefer_low_memory_usage","classes":"tsd-kind-property tsd-parent-kind-interface","parent":"AppOptions"},{"id":53,"kind":256,"name":"TemplatedApp","url":"interfaces/templatedapp.html","classes":"tsd-kind-interface"},{"id":54,"kind":2048,"name":"listen","url":"interfaces/templatedapp.html#listen","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"TemplatedApp"},{"id":55,"kind":2048,"name":"get","url":"interfaces/templatedapp.html#get","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"TemplatedApp"},{"id":56,"kind":2048,"name":"post","url":"interfaces/templatedapp.html#post","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"TemplatedApp"},{"id":57,"kind":2048,"name":"options","url":"interfaces/templatedapp.html#options","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"TemplatedApp"},{"id":58,"kind":2048,"name":"del","url":"interfaces/templatedapp.html#del","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"TemplatedApp"},{"id":59,"kind":2048,"name":"patch","url":"interfaces/templatedapp.html#patch","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"TemplatedApp"},{"id":60,"kind":2048,"name":"put","url":"interfaces/templatedapp.html#put","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"TemplatedApp"},{"id":61,"kind":2048,"name":"head","url":"interfaces/templatedapp.html#head","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"TemplatedApp"},{"id":62,"kind":2048,"name":"connect","url":"interfaces/templatedapp.html#connect","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"TemplatedApp"},{"id":63,"kind":2048,"name":"trace","url":"interfaces/templatedapp.html#trace","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"TemplatedApp"},{"id":64,"kind":2048,"name":"any","url":"interfaces/templatedapp.html#any","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"TemplatedApp"},{"id":65,"kind":2048,"name":"ws","url":"interfaces/templatedapp.html#ws","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"TemplatedApp"},{"id":66,"kind":2048,"name":"publish","url":"interfaces/templatedapp.html#publish","classes":"tsd-kind-method tsd-parent-kind-interface","parent":"TemplatedApp"},{"id":67,"kind":4194304,"name":"RecognizedString","url":"index.html#recognizedstring","classes":"tsd-kind-type-alias"},{"id":68,"kind":64,"name":"App","url":"index.html#app","classes":"tsd-kind-function"},{"id":69,"kind":64,"name":"SSLApp","url":"index.html#sslapp","classes":"tsd-kind-function"},{"id":70,"kind":64,"name":"us_listen_socket_close","url":"index.html#us_listen_socket_close","classes":"tsd-kind-function"},{"id":71,"kind":4194304,"name":"CompressOptions","url":"index.html#compressoptions","classes":"tsd-kind-type-alias"},{"id":72,"kind":32,"name":"DISABLED","url":"index.html#disabled","classes":"tsd-kind-variable"},{"id":73,"kind":32,"name":"SHARED_COMPRESSOR","url":"index.html#shared_compressor","classes":"tsd-kind-variable"},{"id":74,"kind":32,"name":"DEDICATED_COMPRESSOR","url":"index.html#dedicated_compressor","classes":"tsd-kind-variable"},{"id":75,"kind":32,"name":"DEDICATED_COMPRESSOR_3KB","url":"index.html#dedicated_compressor_3kb","classes":"tsd-kind-variable"},{"id":76,"kind":32,"name":"DEDICATED_COMPRESSOR_4KB","url":"index.html#dedicated_compressor_4kb","classes":"tsd-kind-variable"},{"id":77,"kind":32,"name":"DEDICATED_COMPRESSOR_8KB","url":"index.html#dedicated_compressor_8kb","classes":"tsd-kind-variable"},{"id":78,"kind":32,"name":"DEDICATED_COMPRESSOR_16KB","url":"index.html#dedicated_compressor_16kb","classes":"tsd-kind-variable"},{"id":79,"kind":32,"name":"DEDICATED_COMPRESSOR_32KB","url":"index.html#dedicated_compressor_32kb","classes":"tsd-kind-variable"},{"id":80,"kind":32,"name":"DEDICATED_COMPRESSOR_64KB","url":"index.html#dedicated_compressor_64kb","classes":"tsd-kind-variable"},{"id":81,"kind":32,"name":"DEDICATED_COMPRESSOR_128KB","url":"index.html#dedicated_compressor_128kb","classes":"tsd-kind-variable"},{"id":82,"kind":32,"name":"DEDICATED_COMPRESSOR_256KB","url":"index.html#dedicated_compressor_256kb","classes":"tsd-kind-variable"}]}; \ No newline at end of file diff --git a/docs/generated/index.html b/docs/generated/index.html index f09dfe12..1d2ab895 100644 --- a/docs/generated/index.html +++ b/docs/generated/index.html @@ -3,7 +3,7 @@ - uWebSockets.js v17.1.0 documentation + uWebSockets.js v17.3.0 documentation @@ -22,7 +22,7 @@
  • Preparing search index...
  • The search index is not available
  • - uWebSockets.js v17.1.0 documentation + uWebSockets.js v17.3.0 documentation
    @@ -54,7 +54,7 @@ Globals -

    uWebSockets.js v17.1.0 documentation

    +

    uWebSockets.js v17.3.0 documentation

    @@ -88,6 +88,14 @@

    Variables

    @@ -111,7 +119,7 @@
    CompressOptions: number
    @@ -126,7 +134,7 @@
    RecognizedString: string | ArrayBuffer | Uint8Array | Int8Array | Uint16Array | Int16Array | Uint32Array | Int32Array | Float32Array | Float64Array
    @@ -144,12 +152,132 @@
    DEDICATED_COMPRESSOR: CompressOptions
    -

    Sliding dedicated compress window, requires lots of memory per socket

    +

    Sliding dedicated compress window, requires 256KB of memory per socket

    +
    +
    + +
    + +

    DEDICATED_COMPRESSOR_128KB

    +
    DEDICATED_COMPRESSOR_128KB: CompressOptions
    + +
    +
    +

    Sliding dedicated compress window, requires 128KB of memory per socket

    +
    +
    +
    +
    + +

    DEDICATED_COMPRESSOR_16KB

    +
    DEDICATED_COMPRESSOR_16KB: CompressOptions
    + +
    +
    +

    Sliding dedicated compress window, requires 16KB of memory per socket

    +
    +
    +
    +
    + +

    DEDICATED_COMPRESSOR_256KB

    +
    DEDICATED_COMPRESSOR_256KB: CompressOptions
    + +
    +
    +

    Sliding dedicated compress window, requires 256KB of memory per socket

    +
    +
    +
    +
    + +

    DEDICATED_COMPRESSOR_32KB

    +
    DEDICATED_COMPRESSOR_32KB: CompressOptions
    + +
    +
    +

    Sliding dedicated compress window, requires 32KB of memory per socket

    +
    +
    +
    +
    + +

    DEDICATED_COMPRESSOR_3KB

    +
    DEDICATED_COMPRESSOR_3KB: CompressOptions
    + +
    +
    +

    Sliding dedicated compress window, requires 3KB of memory per socket

    +
    +
    +
    +
    + +

    DEDICATED_COMPRESSOR_4KB

    +
    DEDICATED_COMPRESSOR_4KB: CompressOptions
    + +
    +
    +

    Sliding dedicated compress window, requires 4KB of memory per socket

    +
    +
    +
    +
    + +

    DEDICATED_COMPRESSOR_64KB

    +
    DEDICATED_COMPRESSOR_64KB: CompressOptions
    + +
    +
    +

    Sliding dedicated compress window, requires 64KB of memory per socket

    +
    +
    +
    +
    + +

    DEDICATED_COMPRESSOR_8KB

    +
    DEDICATED_COMPRESSOR_8KB: CompressOptions
    + +
    +
    +

    Sliding dedicated compress window, requires 8KB of memory per socket

    @@ -159,7 +287,7 @@
    DISABLED: CompressOptions
    @@ -174,7 +302,7 @@
    SHARED_COMPRESSOR: CompressOptions
    @@ -196,7 +324,7 @@
  • @@ -224,7 +352,7 @@
  • @@ -252,7 +380,7 @@
  • @@ -312,6 +440,30 @@
  • DEDICATED_COMPRESSOR
  • +
  • + DEDICATED_COMPRESSOR_128KB +
  • +
  • + DEDICATED_COMPRESSOR_16KB +
  • +
  • + DEDICATED_COMPRESSOR_256KB +
  • +
  • + DEDICATED_COMPRESSOR_32KB +
  • +
  • + DEDICATED_COMPRESSOR_3KB +
  • +
  • + DEDICATED_COMPRESSOR_4KB +
  • +
  • + DEDICATED_COMPRESSOR_64KB +
  • +
  • + DEDICATED_COMPRESSOR_8KB +
  • DISABLED
  • diff --git a/docs/generated/interfaces/appoptions.html b/docs/generated/interfaces/appoptions.html index 73897fc9..8c264389 100644 --- a/docs/generated/interfaces/appoptions.html +++ b/docs/generated/interfaces/appoptions.html @@ -3,7 +3,7 @@ - AppOptions | uWebSockets.js v17.1.0 documentation + AppOptions | uWebSockets.js v17.3.0 documentation @@ -22,7 +22,7 @@
  • Preparing search index...
  • The search index is not available
  • - uWebSockets.js v17.1.0 documentation + uWebSockets.js v17.3.0 documentation
    @@ -104,7 +104,7 @@
    cert_file_name: RecognizedString
    @@ -114,7 +114,7 @@
    dh_params_file_name: RecognizedString
    @@ -124,7 +124,7 @@
    key_file_name: RecognizedString
    @@ -134,7 +134,7 @@
    passphrase: RecognizedString
    @@ -144,7 +144,7 @@
    ssl_prefer_low_memory_usage: boolean
    @@ -216,6 +216,30 @@
  • DEDICATED_COMPRESSOR
  • +
  • + DEDICATED_COMPRESSOR_128KB +
  • +
  • + DEDICATED_COMPRESSOR_16KB +
  • +
  • + DEDICATED_COMPRESSOR_256KB +
  • +
  • + DEDICATED_COMPRESSOR_32KB +
  • +
  • + DEDICATED_COMPRESSOR_3KB +
  • +
  • + DEDICATED_COMPRESSOR_4KB +
  • +
  • + DEDICATED_COMPRESSOR_64KB +
  • +
  • + DEDICATED_COMPRESSOR_8KB +
  • DISABLED
  • diff --git a/docs/generated/interfaces/httprequest.html b/docs/generated/interfaces/httprequest.html index 7e6b65a0..5cde22dd 100644 --- a/docs/generated/interfaces/httprequest.html +++ b/docs/generated/interfaces/httprequest.html @@ -3,7 +3,7 @@ - HttpRequest | uWebSockets.js v17.1.0 documentation + HttpRequest | uWebSockets.js v17.3.0 documentation @@ -22,7 +22,7 @@
  • Preparing search index...
  • The search index is not available
  • - uWebSockets.js v17.1.0 documentation + uWebSockets.js v17.3.0 documentation
    @@ -110,7 +110,7 @@
  • @@ -159,7 +159,7 @@
  • @@ -187,7 +187,7 @@
  • @@ -209,7 +209,7 @@
  • @@ -237,7 +237,7 @@
  • @@ -259,7 +259,7 @@
  • @@ -281,7 +281,7 @@
  • @@ -368,6 +368,30 @@
  • DEDICATED_COMPRESSOR
  • +
  • + DEDICATED_COMPRESSOR_128KB +
  • +
  • + DEDICATED_COMPRESSOR_16KB +
  • +
  • + DEDICATED_COMPRESSOR_256KB +
  • +
  • + DEDICATED_COMPRESSOR_32KB +
  • +
  • + DEDICATED_COMPRESSOR_3KB +
  • +
  • + DEDICATED_COMPRESSOR_4KB +
  • +
  • + DEDICATED_COMPRESSOR_64KB +
  • +
  • + DEDICATED_COMPRESSOR_8KB +
  • DISABLED
  • diff --git a/docs/generated/interfaces/httpresponse.html b/docs/generated/interfaces/httpresponse.html index c07585bb..10f9756d 100644 --- a/docs/generated/interfaces/httpresponse.html +++ b/docs/generated/interfaces/httpresponse.html @@ -3,7 +3,7 @@ - HttpResponse | uWebSockets.js v17.1.0 documentation + HttpResponse | uWebSockets.js v17.3.0 documentation @@ -22,7 +22,7 @@
  • Preparing search index...
  • The search index is not available
  • - uWebSockets.js v17.1.0 documentation + uWebSockets.js v17.3.0 documentation
    @@ -124,7 +124,7 @@
  • @@ -146,7 +146,7 @@
  • @@ -195,7 +195,7 @@
  • @@ -223,7 +223,7 @@
  • @@ -245,7 +245,7 @@
  • @@ -267,7 +267,7 @@
  • @@ -310,7 +310,7 @@
  • @@ -359,7 +359,7 @@
  • @@ -407,7 +407,7 @@
  • @@ -438,7 +438,7 @@
  • @@ -466,7 +466,7 @@
  • @@ -497,7 +497,7 @@
  • @@ -599,6 +599,30 @@
  • DEDICATED_COMPRESSOR
  • +
  • + DEDICATED_COMPRESSOR_128KB +
  • +
  • + DEDICATED_COMPRESSOR_16KB +
  • +
  • + DEDICATED_COMPRESSOR_256KB +
  • +
  • + DEDICATED_COMPRESSOR_32KB +
  • +
  • + DEDICATED_COMPRESSOR_3KB +
  • +
  • + DEDICATED_COMPRESSOR_4KB +
  • +
  • + DEDICATED_COMPRESSOR_64KB +
  • +
  • + DEDICATED_COMPRESSOR_8KB +
  • DISABLED
  • diff --git a/docs/generated/interfaces/templatedapp.html b/docs/generated/interfaces/templatedapp.html index 6cc8f486..fac816f4 100644 --- a/docs/generated/interfaces/templatedapp.html +++ b/docs/generated/interfaces/templatedapp.html @@ -3,7 +3,7 @@ - TemplatedApp | uWebSockets.js v17.1.0 documentation + TemplatedApp | uWebSockets.js v17.3.0 documentation @@ -22,7 +22,7 @@
  • Preparing search index...
  • The search index is not available
  • - uWebSockets.js v17.1.0 documentation + uWebSockets.js v17.3.0 documentation
    @@ -116,7 +116,7 @@
  • @@ -168,7 +168,7 @@
  • @@ -220,7 +220,7 @@
  • @@ -272,7 +272,7 @@
  • @@ -324,7 +324,7 @@
  • @@ -377,7 +377,7 @@
  • @@ -420,7 +420,7 @@
  • @@ -469,7 +469,7 @@
  • @@ -521,7 +521,7 @@
  • @@ -573,7 +573,7 @@
  • @@ -625,7 +625,7 @@
  • @@ -662,7 +662,7 @@
  • @@ -714,7 +714,7 @@
  • @@ -766,7 +766,7 @@
  • @@ -874,6 +874,30 @@
  • DEDICATED_COMPRESSOR
  • +
  • + DEDICATED_COMPRESSOR_128KB +
  • +
  • + DEDICATED_COMPRESSOR_16KB +
  • +
  • + DEDICATED_COMPRESSOR_256KB +
  • +
  • + DEDICATED_COMPRESSOR_32KB +
  • +
  • + DEDICATED_COMPRESSOR_3KB +
  • +
  • + DEDICATED_COMPRESSOR_4KB +
  • +
  • + DEDICATED_COMPRESSOR_64KB +
  • +
  • + DEDICATED_COMPRESSOR_8KB +
  • DISABLED
  • diff --git a/docs/generated/interfaces/us_listen_socket.html b/docs/generated/interfaces/us_listen_socket.html index e914ba40..5acccb52 100644 --- a/docs/generated/interfaces/us_listen_socket.html +++ b/docs/generated/interfaces/us_listen_socket.html @@ -3,7 +3,7 @@ - us_listen_socket | uWebSockets.js v17.1.0 documentation + us_listen_socket | uWebSockets.js v17.3.0 documentation @@ -22,7 +22,7 @@
  • Preparing search index...
  • The search index is not available
  • - uWebSockets.js v17.1.0 documentation + uWebSockets.js v17.3.0 documentation
    @@ -124,6 +124,30 @@
  • DEDICATED_COMPRESSOR
  • +
  • + DEDICATED_COMPRESSOR_128KB +
  • +
  • + DEDICATED_COMPRESSOR_16KB +
  • +
  • + DEDICATED_COMPRESSOR_256KB +
  • +
  • + DEDICATED_COMPRESSOR_32KB +
  • +
  • + DEDICATED_COMPRESSOR_3KB +
  • +
  • + DEDICATED_COMPRESSOR_4KB +
  • +
  • + DEDICATED_COMPRESSOR_64KB +
  • +
  • + DEDICATED_COMPRESSOR_8KB +
  • DISABLED
  • diff --git a/docs/generated/interfaces/websocket.html b/docs/generated/interfaces/websocket.html index f559be40..dd71bfc9 100644 --- a/docs/generated/interfaces/websocket.html +++ b/docs/generated/interfaces/websocket.html @@ -3,7 +3,7 @@ - WebSocket | uWebSockets.js v17.1.0 documentation + WebSocket | uWebSockets.js v17.3.0 documentation @@ -22,7 +22,7 @@
  • Preparing search index...
  • The search index is not available
  • - uWebSockets.js v17.1.0 documentation + uWebSockets.js v17.3.0 documentation
    @@ -123,7 +123,7 @@
  • @@ -145,7 +145,7 @@
  • @@ -185,7 +185,7 @@
  • @@ -216,7 +216,7 @@
  • @@ -238,7 +238,7 @@
  • @@ -260,7 +260,7 @@
  • @@ -288,7 +288,7 @@
  • @@ -325,7 +325,7 @@
  • @@ -359,7 +359,7 @@
  • @@ -387,7 +387,7 @@
  • @@ -415,7 +415,7 @@
  • @@ -508,6 +508,30 @@
  • DEDICATED_COMPRESSOR
  • +
  • + DEDICATED_COMPRESSOR_128KB +
  • +
  • + DEDICATED_COMPRESSOR_16KB +
  • +
  • + DEDICATED_COMPRESSOR_256KB +
  • +
  • + DEDICATED_COMPRESSOR_32KB +
  • +
  • + DEDICATED_COMPRESSOR_3KB +
  • +
  • + DEDICATED_COMPRESSOR_4KB +
  • +
  • + DEDICATED_COMPRESSOR_64KB +
  • +
  • + DEDICATED_COMPRESSOR_8KB +
  • DISABLED
  • diff --git a/docs/generated/interfaces/websocketbehavior.html b/docs/generated/interfaces/websocketbehavior.html index c0758a52..64483f00 100644 --- a/docs/generated/interfaces/websocketbehavior.html +++ b/docs/generated/interfaces/websocketbehavior.html @@ -3,7 +3,7 @@ - WebSocketBehavior | uWebSockets.js v17.1.0 documentation + WebSocketBehavior | uWebSockets.js v17.3.0 documentation @@ -22,7 +22,7 @@
  • Preparing search index...
  • The search index is not available
  • - uWebSockets.js v17.1.0 documentation + uWebSockets.js v17.3.0 documentation
    @@ -107,7 +107,7 @@
    close: function
    @@ -149,7 +149,7 @@
    compression: CompressOptions
    @@ -164,7 +164,7 @@
    drain: function
    @@ -200,7 +200,7 @@
    idleTimeout: number
    @@ -215,7 +215,7 @@
    maxBackpressure: number
    @@ -230,7 +230,7 @@
    maxPayloadLength: number
    @@ -245,7 +245,7 @@
    message: function
    @@ -287,7 +287,7 @@
    open: function
    @@ -392,6 +392,30 @@
  • DEDICATED_COMPRESSOR
  • +
  • + DEDICATED_COMPRESSOR_128KB +
  • +
  • + DEDICATED_COMPRESSOR_16KB +
  • +
  • + DEDICATED_COMPRESSOR_256KB +
  • +
  • + DEDICATED_COMPRESSOR_32KB +
  • +
  • + DEDICATED_COMPRESSOR_3KB +
  • +
  • + DEDICATED_COMPRESSOR_4KB +
  • +
  • + DEDICATED_COMPRESSOR_64KB +
  • +
  • + DEDICATED_COMPRESSOR_8KB +
  • DISABLED
  • diff --git a/docs/index.d.ts b/docs/index.d.ts index bc575f51..2e9846e4 100644 --- a/docs/index.d.ts +++ b/docs/index.d.ts @@ -198,5 +198,22 @@ export type CompressOptions = number; export var DISABLED: CompressOptions; /** Zero memory overhead compression (recommended) */ export var SHARED_COMPRESSOR: CompressOptions; -/** Sliding dedicated compress window, requires lots of memory per socket */ +/** Sliding dedicated compress window, requires 256KB of memory per socket */ export var DEDICATED_COMPRESSOR: CompressOptions; + +/** Sliding dedicated compress window, requires 3KB of memory per socket */ +export var DEDICATED_COMPRESSOR_3KB: CompressOptions; +/** Sliding dedicated compress window, requires 4KB of memory per socket */ +export var DEDICATED_COMPRESSOR_4KB: CompressOptions; +/** Sliding dedicated compress window, requires 8KB of memory per socket */ +export var DEDICATED_COMPRESSOR_8KB: CompressOptions; +/** Sliding dedicated compress window, requires 16KB of memory per socket */ +export var DEDICATED_COMPRESSOR_16KB: CompressOptions; +/** Sliding dedicated compress window, requires 32KB of memory per socket */ +export var DEDICATED_COMPRESSOR_32KB: CompressOptions; +/** Sliding dedicated compress window, requires 64KB of memory per socket */ +export var DEDICATED_COMPRESSOR_64KB: CompressOptions; +/** Sliding dedicated compress window, requires 128KB of memory per socket */ +export var DEDICATED_COMPRESSOR_128KB: CompressOptions; +/** Sliding dedicated compress window, requires 256KB of memory per socket */ +export var DEDICATED_COMPRESSOR_256KB: CompressOptions; diff --git a/src/addon.cpp b/src/addon.cpp index 8b8f28c3..210faaa9 100644 --- a/src/addon.cpp +++ b/src/addon.cpp @@ -118,6 +118,16 @@ void Main(Local exports) { 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_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(); + exports->Set(isolate->GetCurrentContext(), String::NewFromUtf8(isolate, "DEDICATED_COMPRESSOR_8KB", NewStringType::kNormal).ToLocalChecked(), Integer::NewFromUnsigned(isolate, uWS::DEDICATED_COMPRESSOR_8KB)).ToChecked(); + exports->Set(isolate->GetCurrentContext(), String::NewFromUtf8(isolate, "DEDICATED_COMPRESSOR_16KB", NewStringType::kNormal).ToLocalChecked(), Integer::NewFromUnsigned(isolate, uWS::DEDICATED_COMPRESSOR_16KB)).ToChecked(); + exports->Set(isolate->GetCurrentContext(), String::NewFromUtf8(isolate, "DEDICATED_COMPRESSOR_32KB", NewStringType::kNormal).ToLocalChecked(), Integer::NewFromUnsigned(isolate, uWS::DEDICATED_COMPRESSOR_32KB)).ToChecked(); + exports->Set(isolate->GetCurrentContext(), String::NewFromUtf8(isolate, "DEDICATED_COMPRESSOR_64KB", NewStringType::kNormal).ToLocalChecked(), Integer::NewFromUnsigned(isolate, uWS::DEDICATED_COMPRESSOR_64KB)).ToChecked(); + exports->Set(isolate->GetCurrentContext(), String::NewFromUtf8(isolate, "DEDICATED_COMPRESSOR_128KB", NewStringType::kNormal).ToLocalChecked(), Integer::NewFromUnsigned(isolate, uWS::DEDICATED_COMPRESSOR_128KB)).ToChecked(); + exports->Set(isolate->GetCurrentContext(), String::NewFromUtf8(isolate, "DEDICATED_COMPRESSOR_256KB", NewStringType::kNormal).ToLocalChecked(), Integer::NewFromUnsigned(isolate, uWS::DEDICATED_COMPRESSOR_256KB)).ToChecked(); + + /* Listen options */ exports->Set(isolate->GetCurrentContext(), String::NewFromUtf8(isolate, "LIBUS_LISTEN_EXCLUSIVE_PORT", NewStringType::kNormal).ToLocalChecked(), Integer::NewFromUnsigned(isolate, LIBUS_LISTEN_EXCLUSIVE_PORT)).ToChecked(); diff --git a/uWebSockets b/uWebSockets index 591518b2..2e65bf0a 160000 --- a/uWebSockets +++ b/uWebSockets @@ -1 +1 @@ -Subproject commit 591518b2d0749165e6c5a3aca55ee1d1c0454bdc +Subproject commit 2e65bf0a67542df72f6ac41382ec3c5a6b9bc75c