Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VNCFrame ¶
VNCFrame is a snapshot of the framebuffer after one or more updates. Pixels are packed as little-endian BGRX (4 bytes per pixel, X = ignored).
type VNCStream ¶
type VNCStream struct {
Frames chan *VNCFrame
Err chan error
// contains filtered or unexported fields
}
VNCStream owns the connection. Frames are pushed onto Frames; errors that terminate the stream land on Err. Both channels close when the stream ends.
func DialVNC ¶
DialVNC connects to a noVNC websockify endpoint. The URL may be either:
http(s)://host:port → /websockify is appended automatically ws(s)://host:port/websockify → used as-is
The returned stream is already running its read loop; call Close when done. fps caps how often FramebufferUpdateRequest is re-issued (the cloud sandbox's xtigervnc pushes deltas, so this acts as a backstop, not a polling rate). DialVNC connects to a noVNC websockify endpoint. ctx may be nil, in which case context.Background() is used. The returned stream is already running its read loop; call Close when done.
func (*VNCStream) Close ¶
func (s *VNCStream) Close()
Close terminates the stream. Safe to call multiple times.