AgentSender is the subset of the agent registry used for writes. The registry serialises writes per-agent behind a mutex so concurrent sessions sharing the same WebSocket do not corrupt frames. Injected via NewSessions so rdpproxy stays decoupled from the concrete registry type.
| 36 | // same WebSocket do not corrupt frames. Injected via NewSessions so rdpproxy |
| 37 | // stays decoupled from the concrete registry type. |
| 38 | type AgentSender interface { |
| 39 | SendJSON(apiID string, v any) error |
| 40 | } |
| 41 | |
| 42 | // AgentResult carries the outcome of the initial agent handshake. |
| 43 | // On success Connected=true. On failure Connected=false and ErrorMsg holds the |
no outgoing calls
no test coverage detected