Documentation
¶
Overview ¶
Package wsrelay bridges WebSocket connections to the TerminalService RPC. It accepts WebSocket upgrades with a session_id query parameter, opens a StreamTerminal call, and pumps WebSocket frames ↔ RPC messages.
All messages are JSON text frames. Terminal output bytes are base64-encoded within the JSON TerminalServerMessage/TerminalClientMessage structs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthFunc ¶
AuthFunc validates an HTTP request before allowing the WebSocket upgrade. Return nil to allow, non-nil error to reject. The error message is sent as a 403 response body.
type Relay ¶
type Relay struct {
// contains filtered or unexported fields
}
Relay bridges WebSocket connections to a TerminalService.
Click to show internal directories.
Click to hide internal directories.