Pass compress to websocket send
This commit is contained in:
parent
a87a85f1fd
commit
17fb149b04
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user