Configures the client credentials used for secure gRPC requests made by the client.
By default, the client uses default TLS credentials. To use custom TLS credentials, use the tls constructor function which returns a GrpcTlsClientCredentials instance.
To use plaintext communication, use the plaintext constructor function. Should only be used for testing or for APIs where the use of such API or the data exchanged is not sensitive.
GrpcClient("localhost", 50051) {
credentials = plaintext() // for testing purposes only!
}Content copied to clipboard