| 58 | } |
| 59 | |
| 60 | void start() |
| 61 | { |
| 62 | co_spawn(socket_.get_executor(), |
| 63 | [self = shared_from_this()]{ return self->handle_messages(); }, |
| 64 | detached); |
| 65 | |
| 66 | co_spawn(socket_.get_executor(), |
| 67 | [self = shared_from_this()]{ return self->send_heartbeats(); }, |
| 68 | detached); |
| 69 | } |
| 70 | |
| 71 | private: |
| 72 | void stop() |
no test coverage detected