Wrap idleTimeout

This commit is contained in:
Alex Hultman 2019-01-22 18:50:37 +01:00
parent 8da1edc516
commit f2a5d95726
2 changed files with 6 additions and 0 deletions

View file

@ -32,6 +32,9 @@ void uWS_App_ws(const FunctionCallbackInfo<Value> &args) {
/* maxPayloadLength */
behavior.maxPayloadLength = behaviorObject->Get(String::NewFromUtf8(isolate, "maxPayloadLength"))->Int32Value();
/* idleTimeout */
behavior.idleTimeout = behaviorObject->Get(String::NewFromUtf8(isolate, "idleTimeout"))->Int32Value();
/* Compression, map from 0, 1, 2 to disabled, shared, dedicated */
int compression = behaviorObject->Get(String::NewFromUtf8(isolate, "compression"))->Int32Value();
if (compression == 0) {