grpc / grpc-web

gRPC for Web Clients
https://grpc.io
Apache License 2.0
8.45k stars 760 forks source link

Is there a proto-loader for gRPC-web? #1406

Closed Ben-Avrahami closed 2 weeks ago

Ben-Avrahami commented 4 months ago

For gRPC there is a proto-loader to generate the protobuf files. But I am wondering if there is something similar for gRPC-web, (helloworld_grpc_web_pb.js, helloworld_pb.js) instead of having to download the protoc plug-in and having to generate it through the terminal.

Thanks

sampajano commented 4 months ago

@Ben-Avrahami Hi, Thanks for reaching out!

I don't believe there is any change since what was mentioned in https://github.com/grpc/grpc-web/issues/733 (which you had also commented on).

I'm not too familiar with proto-loader and not exactly sure how it could benefit grpc-web, could you try to explain the use case you have in mind?

From what i understand, like what's mentioned in https://github.com/grpc/grpc-web/issues/733, since grpc-web is used for generating a static javascript library to be used on the client side, i'm not clear how dynamic loading of proto would help.

sampajano commented 2 weeks ago

Closing for now. Feel free to re-open and follow up later if there are more updates. Thanks!