Upgrades the connection to a WebSocket for bidirectional PTY I/O. Accepts
access_token query param for browser-based auth (WebSocket API cannot
send custom headers). Streams raw PTY output as binary frames and accepts
JSON control frames for input, resize, and close.