(ws send) add option (-x) to disable per message deflate compression

This commit is contained in:
Benjamin Sergeant
2020-01-04 15:08:36 -08:00
parent e0187b2d8e
commit f56098dd4c
5 changed files with 10 additions and 3 deletions

View File

@ -301,10 +301,11 @@ namespace ix
int ws_send_main(const std::string& url,
const std::string& path,
bool disablePerMessageDeflate,
const ix::SocketTLSOptions& tlsOptions)
{
bool throttle = false;
bool enablePerMessageDeflate = false;
bool enablePerMessageDeflate = !disablePerMessageDeflate;
wsSend(url, path, enablePerMessageDeflate, throttle, tlsOptions);
return 0;