From 62d220f49a99a8ff63b0cb70049f0fd6fef448ff Mon Sep 17 00:00:00 2001 From: Benjamin Sergeant Date: Tue, 22 Sep 2020 08:55:21 -0700 Subject: [PATCH] (cobra 2 cobra) specify as an HTTP header which channel we will republish to --- docs/CHANGELOG.md | 4 ++++ ixbots/ixbots/IXCobraToCobraBot.cpp | 2 ++ ixwebsocket/IXWebSocketVersion.h | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 97592684..33b0d974 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -2,6 +2,10 @@ All changes to this project will be documented in this file. +## [10.4.3] - 2020-09-22 + +(cobra 2 cobra) specify as an HTTP header which channel we will republish to + ## [10.4.2] - 2020-09-18 (cobra bots) change an error log to a warning log when reconnecting because no messages were received for a minute diff --git a/ixbots/ixbots/IXCobraToCobraBot.cpp b/ixbots/ixbots/IXCobraToCobraBot.cpp index 06fe7fee..45848a7a 100644 --- a/ixbots/ixbots/IXCobraToCobraBot.cpp +++ b/ixbots/ixbots/IXCobraToCobraBot.cpp @@ -23,6 +23,8 @@ namespace ix CobraConfig cobraPublisherConfig = cobraBotConfig.cobraConfig; cobraPublisherConfig.rolename = publisherRolename; cobraPublisherConfig.rolesecret = publisherRolesecret; + cobraPublisherConfig.headers["X-Cobra-Republish-Channel"] = republishChannel; + cobraMetricsPublisher.configure(cobraPublisherConfig, republishChannel); bot.setOnBotMessageCallback( diff --git a/ixwebsocket/IXWebSocketVersion.h b/ixwebsocket/IXWebSocketVersion.h index 482c663a..525e2209 100644 --- a/ixwebsocket/IXWebSocketVersion.h +++ b/ixwebsocket/IXWebSocketVersion.h @@ -6,4 +6,4 @@ #pragma once -#define IX_WEBSOCKET_VERSION "10.4.2" +#define IX_WEBSOCKET_VERSION "10.4.3"