27 Dec
2018
27 Dec
'18
1:54 a.m.
On Tue, Dec 25, 2018 at 10:13 PM Richard Hodges via Boost
What you are not doing is preserving the lifetime of the session because you're not storing new_session anywhere.
It becomes a little easier to follow if you use a lambda:
I explain all of this in simple terms, in my CppCon 2018 presentation titled "Get rich quick! Using Boost.Beast WebSockets and Networking TS", available here: https://www.youtube.com/watch?v=7FQwAjELMek All of the source code for the program developed in the video is part of Boost.Beast 1.69.0. Regards