per-message deflate compression fixes

This commit is contained in:
Benjamin Sergeant
2018-11-13 17:46:05 -08:00
parent e847716076
commit 54da891f79
4 changed files with 43 additions and 13 deletions

View File

@ -14,7 +14,7 @@ namespace ix
{
public:
WebSocketPerMessageDeflateOptions(
bool enabled = true,
bool enabled = false,
bool clientNoContextTakeover = false,
bool serverNoContextTakeover = false,
uint8_t clientMaxWindowBits = kDefaultClientMaxWindowBits,
@ -33,14 +33,14 @@ namespace ix
static bool startsWith(const std::string& str, const std::string& start);
static std::string removeSpaces(const std::string& str);
static uint8_t const kDefaultClientMaxWindowBits;
static uint8_t const kDefaultServerMaxWindowBits;
private:
bool _enabled;
bool _clientNoContextTakeover;
bool _serverNoContextTakeover;
int _clientMaxWindowBits;
int _serverMaxWindowBits;
static uint8_t const kDefaultClientMaxWindowBits;
static uint8_t const kDefaultServerMaxWindowBits;
};
}