| 192 | } |
| 193 | |
| 194 | void |
| 195 | on_write(beast::error_code ec, std::size_t) |
| 196 | { |
| 197 | if(ec) |
| 198 | return fail(ec, "write"); |
| 199 | |
| 200 | if(messages_--) |
| 201 | return do_read(); |
| 202 | |
| 203 | ws_.async_close({}, |
| 204 | beast::bind_front_handler( |
| 205 | &connection::on_close, |
| 206 | this->shared_from_this())); |
| 207 | } |
| 208 | |
| 209 | void |
| 210 | do_read() |
nothing calls this directly
no test coverage detected