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)
| 342 | // backward compatibility). Use ConnectRPCWithRole to explicitly |
| 343 | // identify the caller's role. |
| 344 | func (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 |