You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/cpp-batching-upgrade.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,6 @@ If you are using the [websocket JRPC API](websocket_api.md) to send updates to `
8
8
## C++ Bindings
9
9
If you are linking against the C++ bindings, you will need to make some changes to your code to support sending batched updates.
10
10
11
-
Instead of sending individual price updates in response to `price_sched` callbacks, you will now need to call `pc::price::send` with a vector of `pc::price` objects that you wish to publish, in response to `on_slot_publish` callbacks. These will then be batched into transactions. The [`test_publish.cpp`](../pctest/test_publish.cpp) example has been updated to use this new approach.
11
+
Instead of sending individual price updates in response to `price_sched` callbacks, you will now need to call `pc::price::send` with a vector of `pc::price` objects that you wish to publish, in response to `on_slot_publish` callbacks. These will then be batched into transactions. The [`test_publish.cpp`](../pctest/test_publish_websocket.cpp) example has been updated to use this new approach.
12
12
13
13
**Important**: this is a breaking change for C++ publishers, so you will need to update your code as described above for `2.10.1` to work.
0 commit comments