MCPcopy
hub / github.com/PatchMon/PatchMon / sendToAgent

Method sendToAgent

server-source-code/internal/rdpproxy/session.go:240–249  ·  view source on GitHub ↗
(msgType string, data string)

Source from the content-addressed store, hash-verified

238}
239
240func (s *Session) sendToAgent(msgType string, data string) error {
241 msg := map[string]interface{}{
242 "type": msgType,
243 "session_id": s.SessionID,
244 }
245 if data != "" {
246 msg["data"] = data
247 }
248 return s.sender.SendJSON(s.ApiID, msg)
249}
250
251// touchActivity updates the last activity timestamp.
252func (s *Session) touchActivity() {

Callers 1

bridgeGuacdToAgentMethod · 0.95

Calls 1

SendJSONMethod · 0.65

Tested by

no test coverage detected