You cannot call any members from different threads concurrently. You have to make all your calls from the same implicit or explicit strand. Beast websocket streams work just like Asio streams - they are not thread-safe (even though you are using threads in your io_service).
Thank you, but it does not help me, I use one thread for my 'async_read' and 'async_write' operations now but I have error still.
pausation.hpp:149 What I can do? Thank you.
void beast::websocket::detail::pausation::emplace(F&&) [with F = beast::websocket::streamboost::asio::basic_stream_socket
The other reason that this assert comes up is if you try to call async_read or async_write twice without an intermediate completion. Is your code on GitHub where I can see it? Or can you post a gist?
Thank you very much, it help me. I call "async_write" several without an intermediate completion.
Sounds like this is resolved, so I'll go ahead and close the issue. If you have another problem feel free to open a new issue any time, thanks!