-
Notifications
You must be signed in to change notification settings - Fork 787
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for grpc web #99
Comments
I want to be able to consume gRPC services from Blazor. You can read The state of gRPC in the browser. It is pretty easy to set up a gRPC-web proxy for a gRPC service, so it would be nice to be able to servce gRPC-web, but we can get by without out. What we really need is the gRPC-web client. |
It would involve writing a custom There is nothing stopping someone writing one today in .NET Core 2.2. gRPC-web uses HTTP/1 tech which is fully supported by HttpClient. |
I vote for this feature. We intend to do a simple protobuf-over-websocket thing in our blazor app. I'm insisting we call it |
Would love support for this as well. I came up with a grpc-gateway-like solution where I convert calls so I could reach my api via Blazor WASM. For anyone interested here is my project: https://github.com/razfriman/BlazorGrpc |
Server in-process proxy guidance: https://github.com/grpc/grpc-web/blob/master/IN-PROCESS-PROXY.md |
For anyone looking to get a working gRPC server & client Blazor wasm app, I've created a simple proof of concept. The PoC uses a gRPC-web proxy hosted in a aspnet core service (KnowitSolutions created the gRPC-web proxy), and consumes it in the blazor wasm app using a basic The example does use grpc code first libraries, but is pretty easy to convert to the contract first setup. From the top of my head;
|
grpcWeb is a different protocol to grpc over HTTP/2. At some point we should add support for this.
https://github.com/grpc/grpc/blob/master/doc/PROTOCOL-WEB.md#protocol-differences-vs-grpc-over-http2
The text was updated successfully, but these errors were encountered: