4 ms·
what have you not liked about grpc-web?
by blank_fan_pill 4y ago
what have you not liked about grpc-web?
- vyrotek 4y agoPersonally, I find gRPC-Web very attractive but the current state of TypeScript/JS code-gen is very confusing and lacking. I would love something like https://orval.dev https://orval.dev for gRPC-web. Have I missed something or is it just early to expect it? I tried a few libraries but couldn't get them to work or would generate unappealing results. I believe I'm hitting this issue with my local experiments. https://github.com/grpc/grpc-web/issues/535 https://github.com/grpc/grpc-web/issues/535 UPDATE: I was able to get something working with these from a ReactJS app! Server: https://learn.microsoft.com/en-us/aspnet/core/grpc/grpcweb https://learn.microsoft.com/en-us/aspnet/core/grpc/grpcweb Client TS Gen: https://github.com/timostamm/protobuf-ts https://github.com/timostamm/protobuf-ts
- erdaniels 4y agoAh you should check out https://github.com/bufbuild/protobuf-es https://github.com/bufbuild/protobuf-es which feels great so far. Then there's connect by the same buf people but it has a grpc-web option https://connect.build/docs/web/getting-started/ https://connect.build/docs/web/getting-started/. The amount of code generated is also tiny, which I love.
- erdaniels 4y agoUltimately just the fact that we can't use standard browser dev tools to introspect requests. There are some plugins but they have not worked reliably for me.