MCPcopy Create free account
hub / github.com/coder/coder / VNCConn

Method VNCConn

agent/x/agentdesktop/desktop.go:23–23  ·  view source on GitHub ↗

VNCConn dials the desktop's VNC server and returns a raw net.Conn carrying RFB binary frames. Each call returns a new connection; multiple clients can connect simultaneously. Start must be called before VNCConn.

(ctx context.Context)

Source from the content-addressed store, hash-verified

21 // connection; multiple clients can connect simultaneously.
22 // Start must be called before VNCConn.
23 VNCConn(ctx context.Context) (net.Conn, error)
24
25 // Screenshot captures the current framebuffer as a PNG and
26 // returns it base64-encoded. TargetWidth/TargetHeight in opts

Callers 1

handleDesktopVNCMethod · 0.65

Implementers 2

fakeDesktopagent/x/agentdesktop/api_test.go
portableDesktopagent/x/agentdesktop/portabledesktop.g

Calls

no outgoing calls

Tested by

no test coverage detected