(ws) ws connect has a -g option to gzip decompress messages for API such as the websocket Huobi Global.

This commit is contained in:
Benjamin Sergeant
2021-06-08 09:49:27 -07:00
parent 47fd04e210
commit 30bcddb99f
4 changed files with 36 additions and 11 deletions

View File

@ -41,8 +41,7 @@ namespace ix
, _pingIntervalSecs(kDefaultPingIntervalSecs)
{
_ws.setOnCloseCallback(
[this](uint16_t code, const std::string& reason, size_t wireSize, bool remote)
{
[this](uint16_t code, const std::string& reason, size_t wireSize, bool remote) {
_onMessageCallback(
ix::make_unique<WebSocketMessage>(WebSocketMessageType::Close,
emptyMsg,
@ -385,8 +384,7 @@ namespace ix
[this](const std::string& msg,
size_t wireSize,
bool decompressionError,
WebSocketTransport::MessageKind messageKind)
{
WebSocketTransport::MessageKind messageKind) {
WebSocketMessageType webSocketMessageType;
switch (messageKind)
{

View File

@ -6,4 +6,4 @@
#pragma once
#define IX_WEBSOCKET_VERSION "11.2.8"
#define IX_WEBSOCKET_VERSION "11.2.9"