Skip to content

Commit

Permalink
Merge pull request #106 from btsabc/enable-permessage
Browse files Browse the repository at this point in the history
enable websocket permessage-deflate
  • Loading branch information
abitmore authored Feb 13, 2019
2 parents 66e9739 + b29da15 commit 11caddc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/network/http/websocket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
#include <websocketpp/client.hpp>
#include <websocketpp/logger/stub.hpp>

#include <websocketpp/extensions/permessage_deflate/enabled.hpp>

#include <fc/optional.hpp>
#include <fc/variant.hpp>
#include <fc/thread/thread.hpp>
Expand Down Expand Up @@ -61,6 +63,11 @@ namespace fc { namespace http {
transport_type;

static const long timeout_open_handshake = 0;

// permessage_compress extension
struct permessage_deflate_config {};
typedef websocketpp::extensions::permessage_deflate::enabled <permessage_deflate_config> permessage_deflate_type;

};
struct asio_tls_with_stub_log : public websocketpp::config::asio_tls {

Expand Down

0 comments on commit 11caddc

Please sign in to comment.