| 45 | } |
| 46 | |
| 47 | void Transporter::Send(int cmd, const nlohmann::json document) |
| 48 | { |
| 49 | std::string documentText = document.dump(-1, ' ', false, nlohmann::detail::error_handler_t::ignore); |
| 50 | Send(cmd, documentText.data(), documentText.size()); |
| 51 | } |
| 52 | |
| 53 | void Transporter::OnAfterRead(uv_stream_t* handle, ssize_t nread, const uv_buf_t* buf) |
| 54 | { |
no test coverage detected