| 123 | } |
| 124 | |
| 125 | void WsPanelClient::PostNetMessage(std::shared_ptr<Data> msg) { |
| 126 | if (client_ && client_->is_started()) { |
| 127 | if (queuing_message_count_ > kMaxClientQueuedMessage) { |
| 128 | return; |
| 129 | } |
| 130 | queuing_message_count_++; |
| 131 | client_->async_send(msg->CStr(), msg->Size(), [=, this]() { |
| 132 | queuing_message_count_--; |
| 133 | }); |
| 134 | } |
| 135 | } |
| 136 | |
| 137 | void WsPanelClient::ParseNetMessage(std::string_view _msg) { |
| 138 | try { |
nothing calls this directly
no outgoing calls
no test coverage detected