Protocol Specifications
Terminal Transport (WebSocket v3)
VibeTunnel uses a single WebSocket endpoint for terminal transport, multiplexing sessions over binary frames.Connection Establishment
Subscriptions
- Subscribe per session: send a v3
SUBSCRIBEframe withsessionId+ flags (Stdout,Snapshots,Events). - Global events: use an empty
sessionIdand theEventsflag.
docs/websocket.md and web/src/shared/ws-v3.ts.
Error Codes
PTY Protocol
Process Spawning
Control Sequences
Terminal Modes
Session Recording Protocol
Asciinema v2 Format
Header:o: Output from terminali: Input from userr: Terminal resize
Recording Storage
HTTP Protocol
Request Headers
Response Headers
Status Codes
Terminal Transport (WebSocket v3)
VibeTunnel uses a single WebSocket endpoint for terminal transport:- Endpoint:
GET /ws(upgrade) - Binary framing:
"VT"magic + version + type + sessionId + payload - Multiplexing: one socket can carry multiple sessions
- Subscriptions: flags for
stdout,snapshots,events
docs/websocket.md.