| 18 | const int kMaxClientQueuedMessage = 4096; |
| 19 | |
| 20 | RenderServiceClient::RenderServiceClient(const std::shared_ptr<RdApplication>& app) { |
| 21 | statistics_ = RdStatistics::Instance(); |
| 22 | app_ = app; |
| 23 | context_ = app_->GetContext(); |
| 24 | msg_listener_ = context_->GetMessageNotifier()->CreateListener(); |
| 25 | msg_listener_->Listen<MsgTimer1000>([=, this](const MsgTimer1000& msg) { |
| 26 | this->HeartBeat(); |
| 27 | }); |
| 28 | } |
| 29 | |
| 30 | void RenderServiceClient::Start() { |
| 31 | client_ = std::make_shared<asio2::ws_client>(); |
nothing calls this directly
no test coverage detected