| 290 | } |
| 291 | |
| 292 | void WsPluginServer::AddHttpRouter(const std::string &path, |
| 293 | std::function<void(const std::string& path, std::shared_ptr<asio2::http_session> &session_ptr, http::web_request& req, http::web_response& rep)>&& callback) { |
| 294 | // bind it |
| 295 | server_->bind<http::verb::get, http::verb::post>(path, [=, this](std::shared_ptr<asio2::http_session> &session_ptr, http::web_request &req, http::web_response &rep) { |
| 296 | callback(path, session_ptr, req, rep); |
| 297 | }, aop_log{}); //, http::enable_cache |
| 298 | } |
| 299 | |
| 300 | void WsPluginServer::NotifyMediaClientConnected(const std::string& conn_id, const std::string& stream_id, const std::string& visitor_device_id) { |
| 301 | auto event = std::make_shared<GrPluginClientConnectedEvent>(); |
nothing calls this directly
no outgoing calls
no test coverage detected