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.

I have followed the steps here to setup a development proxy with certs:  
https://www.envoyproxy.io/learn/ssl

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 for any help. I have scoured the bug list but this is where I ended 
up:

https://github.com/grpc/grpc-web/issues/40

https://github.com/grpc/grpc-web/pull/125

Thanks!



-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/18d17c3d-0c44-42e0-9c01-cee22125cfd3%40googlegroups.com.

Reply via email to