GoPxL SDK
GoTransaction Sub ( const std::string &  uri,
const GoJson content = {},
const GoJson args = {} 
)

Subscribes for notifications on an observable resource.

Not all resources are observable, check the API docs. Ensure you have set the subscription handler before calling this function to ensure you do not miss any messages.

Version
Introduced in 0.2.1.53.
Parameters
uriThe URI to the resource.
contentGoJson object of the content for the request.
argsGoJson object of arguments for the request.
Exceptions
GoChannelErrorIf not connected to channel.
Returns
Transaction object to monitor status and wait for results.