Documentation
¶
Overview ¶
Package transport carries the sync endpoint protocol over the Terminal Proxy WebSocket, presenting it to the client as a plain reader and writer.
A non-TTY session tags each output frame with the stream it came from, so the protocol stream can be separated from diagnostics. A TTY session cannot carry this protocol at all: a PTY merges the two at the kernel and translates line endings.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
Conn is one endpoint session. Read yields protocol bytes; diagnostics are collected separately and surfaced when something fails.
func Dial ¶
Dial opens the session. The ticket is single-use and short-lived, which is why it travels as a query parameter rather than a bearer token.
func (*Conn) Diagnostics ¶
Diagnostics is whatever the endpoint wrote to stderr, surfaced by the CLI when a session fails.