Options for the low-level WebSocket stream functions.
interface WsRunOptionsClient-assigned command ID.
Working directory for command execution.
Environment variables to set for the command.
Additional headers attached to the WebSocket upgrade request. Merged on top of any default headers the SandboxClient was constructed with.
Idle timeout in seconds. If the command has no connected clients for this duration, it is killed. Defaults to 300 (5 minutes). Set to -1 for no idle timeout.
If true, kill the command immediately when the last client disconnects. Defaults to false (command continues running and can be reconnected to).
Callback invoked with each stderr chunk.
Callback invoked with each stdout chunk.
Whether to allocate a PTY.
Shell to use. Default: "/bin/bash".
Command timeout in seconds. Default: 60.
How long (in seconds) a finished command's session is kept for reconnection. Defaults to 600 (10 minutes). Set to -1 to keep indefinitely.