From 17fb149b04699ee411e4ef5c1296c09e318422e2 Mon Sep 17 00:00:00 2001 From: Alex Hultman Date: Sat, 17 Aug 2019 00:13:51 +0200 Subject: [PATCH] Pass compress to websocket send --- src/WebSocketWrapper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WebSocketWrapper.h b/src/WebSocketWrapper.h index 67d7035..f1b166c 100644 --- a/src/WebSocketWrapper.h +++ b/src/WebSocketWrapper.h @@ -107,7 +107,7 @@ struct WebSocketWrapper { return; } - bool ok = ws->send(message.getString(), args[1]->BooleanValue(isolate->GetCurrentContext()).ToChecked() ? uWS::OpCode::BINARY : uWS::OpCode::TEXT); + bool ok = ws->send(message.getString(), args[1]->BooleanValue(isolate->GetCurrentContext()).ToChecked() ? uWS::OpCode::BINARY : uWS::OpCode::TEXT, args[2]->BooleanValue(isolate->GetCurrentContext()).ToChecked()); args.GetReturnValue().Set(Boolean::New(isolate, ok)); }