WebSocket SSH
Open an interactive SSH terminal to a node via WebSocket. Used by the NodeFoundry UI to provide a browser-based terminal.
Upgrade to a WebSocket connection and open an SSH session to the specified node.
Query parameters
cols int
Terminal width in columns
rows int
Terminal height in rows
Binary message protocol
Messages use a single-byte prefix to indicate the type:
| Prefix | Direction | Description |
|---|---|---|
0x00 | Client -> Server | Stdin data |
0x01 | Server -> Client | Stdout/stderr data |
0x02 | Client -> Server | Terminal resize (5 bytes: 2-byte cols + 2-byte rows, big-endian) |