There are no tutorials yet for the Session class using the async API, but there is Doxygen documentation here:
http://ecorm.github.io/cppwamp/doc/classwamp_1_1_session.html
Without testing it, this is what it would look like to use the async API:
session->enroll(
Procedure("square"),
basicRpc<void, int>([](int arg){return arg*arg;}),
[](AsyncResult<Registration> reg)
{
if (!reg)
cout << reg.errorCode() << "\n";
else
// chain to the next asynchronous operation
}
);
where the 3rd argument is the asynchronous handler function. AsyncResult<Registration> can hold either a valid Registration value upon success, or a std::error_code upon failure.
I don't know when I'll have time to write the tutorials for the asynchronous API, sorry.