Skip to main content

handle_worker_terminal

Function handle_worker_terminal 

Source
pub async fn handle_worker_terminal(
    client: &WorkerClient,
    container_id: &str,
    detach_keys: &str,
) -> Result<()>
Expand description

Handle worker terminal command - attach to container I/O streams

This provides tmux-like terminal streaming with DH-authenticated E2E security:

  • StreamHandle encapsulates DH key exchange, subscription, and HMAC verification
  • Handles detach sequence (default: Ctrl-])