ecorm / cppwamp

C++ client library for the WAMP protocol.
Boost Software License 1.0
35 stars 9 forks source link

Incorrect usage of leave in session documentation #104

Closed ve3jrw closed 2 years ago

ve3jrw commented 7 years ago

The documentation coding example to cleanly shut down a session has the call to the leave method as:

auto reason = session->leave(yield); // returns the Reason URI and // other details from the router's // GOODBYE message

This is not supported. As a minimum it needs to be:

auto reason = session->leave(Reason(), yield)