Request/Reply communication is used to send commands to a motorcortex server.
[Subscribe](api-subscribe.md#classmcx__cpp_1_1Subscribe) class is used to receive continuous parameter updates from motorcortex server. It simplifies creating and removing subscription groups.
[Subscription](api-subscribe.md#classmcx__cpp_1_1Subscription) class represents a group of parameters. It returns the latest values and a timestamp of the group. [Subscription](api-subscribe.md#classmcx__cpp_1_1Subscription) class could be used as an observer, which notifies on every update or could be used as polling.
`public StatusReply `[`connect`](#group__subscribe_1ga85535612b83d8198695a04f281485683)`(std::string url)` | Opens a subscribe connection.
`public StatusReply `[`connect`](#group__subscribe_1ga96cae01189b9ae60848cc6dde4466d7b)`(std::string url,ConnectionOptions connection_options)` | Opens a subscribe connection.
`public void `[`close`](#group__subscribe_1ga9f2a81da4076999ead76c802c8583043)`()` | Closes connection to the server.
`public SubscriptionReply `[`subscribe`](#group__subscribe_1gafb213ffb792de4fc6d3c2656ee64666d)`(std::vector< std::string > path_list,const std::string & group_alias,size_t frequency_divider) const` | Create a subscription group for a list of the parameters.
`public StatusReply `[`unsubscribe`](#group__subscribe_1gaf7b3173f6fbd1ce9128e26e3e3a7e575)`(const Subscription & subscription) const` | Unsubscribes from the group.
a subscription handle, which acts as a Promise, it is resolved when subscription is ready or failed. After the subscription is ready the handle is used to retrieve latest data.