(cobra) IXCobraConfig struct has tlsOptions and per message deflate options

This commit is contained in:
Benjamin Sergeant
2020-03-11 12:40:32 -07:00
parent 0a11132b07
commit 6a4d69afc5
13 changed files with 50 additions and 66 deletions

View File

@ -35,16 +35,10 @@ namespace ix
const std::string& channel,
const std::string& filter,
bool quiet,
bool fluentd,
const ix::SocketTLSOptions& tlsOptions)
bool fluentd)
{
ix::CobraConnection conn;
conn.configure(config.appkey,
config.endpoint,
config.rolename,
config.rolesecret,
ix::WebSocketPerMessageDeflateOptions(true),
tlsOptions);
conn.configure(config);
conn.connect();
Json::FastWriter jsonWriter;