MCPcopy Create free account
hub / github.com/RGAA-Software/GoDesk / HandlePanelStreamMessage

Method HandlePanelStreamMessage

src/render/plugins/net_ws/http_handler.cpp:86–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84 }
85
86 void HttpHandler::HandlePanelStreamMessage(http::web_request& req, http::web_response& resp) {
87 auto& body = req.body();
88 auto target = req.target();
89 if (body.empty()) {
90 SendErrorJson(resp, kHandlerErrBody);
91 return;
92 }
93
94 auto event = std::make_shared<GrPluginPanelStreamMessage>();
95 event->body_ = Data::From(body);
96 this->plugin_->CallbackEvent(event);
97
98 SendOkJson(resp, "");
99 }
100
101 void HttpHandler::HandleAllocLocalRtc(std::shared_ptr<asio2::http_session> &session_ptr, http::web_request& req, http::web_response& resp) {
102 auto& body = req.body();

Callers 1

StartMethod · 0.80

Calls 1

CallbackEventMethod · 0.45

Tested by

no test coverage detected