Implemented generating agent payloads from the ImGui client.
This commit is contained in:
@@ -59,12 +59,11 @@ proc sendAgentCheckin*(client: UIClient, agentId: string) =
|
||||
if client != nil:
|
||||
client.ws.sendEvent(event)
|
||||
|
||||
proc sendAgentPayload*(client: UIClient, agentId: string, bytes: seq[byte]) =
|
||||
proc sendAgentPayload*(client: UIClient, bytes: seq[byte]) =
|
||||
let event = Event(
|
||||
eventType: CLIENT_AGENT_PAYLOAD,
|
||||
timestamp: now().toTime().toUnix(),
|
||||
data: %*{
|
||||
"agentId": agentId,
|
||||
"payload": encode(bytes)
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user