(cobra client) pass the message position to the subscription data callback

This commit is contained in:
Benjamin Sergeant committed 2020-03-13 12:49:37 -07:00
1 parent 90df3d1805
commit 332ffb0603
11 files changed
+59 -43

No files matched your search

+1 -1
View File
@@ -189,7 +189,7 @@ namespace snake
nlohmann::json response = {
{"action", "rtm/subscription/data"},
{"id", id++},
{"body", {{"subscription_id", subscriptionId}, {"messages", {msg}}}}};
{"body", {{"subscription_id", subscriptionId}, {"position", "0-0"}, {"messages", {msg}}}}};
ws->sendText(response.dump());
};