Better output for the non-error events in the client sample
No need for a function when you have C++11
Fixed session request message incorrectly using data() instead of payload()