Hi,
I have referred back to the Hello World example many times whilst building a ReactJS client to our existing gRPC investment, including the adoption of Envoy, Docker, etc. Now I'm at a juncture where I need to enable SSL/TLS in the browser.
But I am at a loss on finding any good code examples on setting up the gRPC client in JS (TS). Most, if not all, online examples you will see:
let apiClient = new APIServicePromiseClient(hostAndPort, null, null);
i.e. credentials and options are optional and nulled.
The ctor for my generated client stub:
constructor (hostname: string,
credentials?: null | { [index: string]: string; },
options?: null | { [index: string]: string; });
In the browser context, what is the usage scenario for configuring credentials (and also, but less important atm, options)?
(Presuming I have followed the steps above in the Envoyproxy documentation, I have self-signed a cert.)
Thanks!