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

Method NotifyMediaClientDisConnected

src/render/plugins/net_ws/ws_server.cpp:311–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

309 }
310
311 void WsPluginServer::NotifyMediaClientDisConnected(const std::string& conn_id, const std::string& stream_id, const std::string& visitor_device_id, int64_t begin_timestamp) {
312 auto event = std::make_shared<GrPluginClientDisConnectedEvent>();
313 event->conn_id_ = conn_id;
314 event->stream_id_ = stream_id;
315 event->visitor_device_id_ = visitor_device_id;
316 event->end_timestamp_ = (int64_t)TimeUtil::GetCurrentTimestamp();
317 event->duration_ = event->end_timestamp_ - begin_timestamp;
318 this->plugin_->CallbackEvent(event);
319 }
320
321 int64_t WsPluginServer::GetQueuingMediaMsgCount() {
322 int64_t count = 0;

Callers

nothing calls this directly

Calls 1

CallbackEventMethod · 0.45

Tested by

no test coverage detected