MCPcopy
hub / github.com/cloudflare/cloudflared / StartClient

Function StartClient

carrier/carrier.go:77–79  ·  view source on GitHub ↗

StartClient will copy the data from stdin/stdout over a WebSocket connection to the edge (originURL)

(conn Connection, stream io.ReadWriter, options *StartOptions)

Source from the content-addressed store, hash-verified

75// StartClient will copy the data from stdin/stdout over a WebSocket connection
76// to the edge (originURL)
77func StartClient(conn Connection, stream io.ReadWriter, options *StartOptions) error {
78 return conn.ServeStream(options, stream)
79}
80
81// Serve accepts incoming connections on the specified net.Listener.
82// Each connection is handled in a new goroutine: its data is copied over a

Callers 2

sshFunction · 0.92
TestStartClientFunction · 0.85

Calls 1

ServeStreamMethod · 0.65

Tested by 1

TestStartClientFunction · 0.68