Skip to main content

remote_ctrl

Function remote_ctrl 

Source
pub fn remote_ctrl(pc_id: &str) -> String
Expand description

remote.ctrl.<pc_id> — #1140 control plane for a remote-assistance session: start, stop, retune.

Addressed by pc_id, not session id, because the agent has to already be subscribed when the first request arrives — a session-scoped control subject would have nothing listening at the moment an operator clicks “connect”. Request/reply: the backend sends a crate::wire::RemoteCtrl and the agent answers with a crate::wire::RemoteCtrlReply carrying the screen geometry (so the SPA can size its canvas before the first frame lands) or a refusal reason.