MCPcopy Index your code
hub / github.com/coder/coder / ConnectRPC

Method ConnectRPC

codersdk/agentsdk/agentsdk.go:344–346  ·  view source on GitHub ↗

ConnectRPC connects to the workspace agent API and tailnet API. It does not send a role query parameter, so the server will apply its default behavior (currently: enable connection monitoring for backward compatibility). Use ConnectRPCWithRole to explicitly identify the caller's role.

(ctx context.Context)

Source from the content-addressed store, hash-verified

342// backward compatibility). Use ConnectRPCWithRole to explicitly
343// identify the caller's role.
344func (c *Client) ConnectRPC(ctx context.Context) (drpc.Conn, error) {
345 return c.connectRPCVersion(ctx, proto.CurrentVersion, "")
346}
347
348// ConnectRPCWithRole connects to the workspace agent RPC API with an
349// explicit role. The role parameter is sent to the server to identify

Calls 1

connectRPCVersionMethod · 0.95