Open a terminal on your dev session's sandbox
Opens an interactive shell in a sandbox that your own dev session for the agent holds. The protocol matches the deployment terminal. A request with no Origin header is refused, so send the server's own URL as Origin.
Handshake
WSS
wss://astropods.com/api/v1/accounts/:account/dev-sessions/:agent/sandboxes/:name/terminal
Send
sendOpenATerminalOnYourDevSessionsSandbox
Keystrokes and pasted text for the shell, as a binary frame of UTF-8 bytes.
OR
sendOpenATerminalOnYourDevSessionsSandbox
The terminal's size in characters, as a text frame. Send it on open and whenever the size changes.
Receive
receiveOpenATerminalOnYourDevSessionsSandbox
Shell output, as a binary frame of raw terminal bytes including escape sequences.