(cobra 2 cobra) specify as an HTTP header which channel we will republish to

This commit is contained in:
Benjamin Sergeant 2020-09-22 08:55:21 -07:00
parent 49995e32f0
commit 62d220f49a
3 changed files with 7 additions and 1 deletions

View File

@ -2,6 +2,10 @@
All changes to this project will be documented in this file. 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 ## [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 (cobra bots) change an error log to a warning log when reconnecting because no messages were received for a minute

View File

@ -23,6 +23,8 @@ namespace ix
CobraConfig cobraPublisherConfig = cobraBotConfig.cobraConfig; CobraConfig cobraPublisherConfig = cobraBotConfig.cobraConfig;
cobraPublisherConfig.rolename = publisherRolename; cobraPublisherConfig.rolename = publisherRolename;
cobraPublisherConfig.rolesecret = publisherRolesecret; cobraPublisherConfig.rolesecret = publisherRolesecret;
cobraPublisherConfig.headers["X-Cobra-Republish-Channel"] = republishChannel;
cobraMetricsPublisher.configure(cobraPublisherConfig, republishChannel); cobraMetricsPublisher.configure(cobraPublisherConfig, republishChannel);
bot.setOnBotMessageCallback( bot.setOnBotMessageCallback(

View File

@ -6,4 +6,4 @@
#pragma once #pragma once
#define IX_WEBSOCKET_VERSION "10.4.2" #define IX_WEBSOCKET_VERSION "10.4.3"