(cobra connection and bots) set an HTTP header when connecting to help with debugging bots

This commit is contained in:
Benjamin Sergeant committed 2020-09-18 15:11:20 -07:00
1 parent 39c84c7d51
commit d525c28907
7 files changed
+17 -4

No files matched your search

+2
View File
@@ -31,6 +31,8 @@ namespace ix
auto limitReceivedEvents = botConfig.limitReceivedEvents;
auto batchSize = botConfig.batchSize;
config.headers["X-Cobra-Channel"] = channel;
ix::CobraConnection conn;
conn.configure(config);
conn.connect();