Open frederikhors opened 3 years ago
In this example, you don't use protobuf.js, you're using protoc
-generated stubs instead. Protobuf.js has nothing to do with protoc
and there is no protoc
plugin (that I'm aware of) that generates protobuf.js representation.
The official gRPC guide uses protobuf.js (and not protoc
) though so you could look there.
I'm new to Protocol buffers and gRPC.
I'm following the "Code Generator Plugin" and "Client Configuration Options" guides and the amazing Percy Bolmer's tutorial.
They say to use this command to generate .js files:
I'm using this
.proto
file:then I'm using the below code in my JS app:
How to use
protobuf.js
now?Can I generate my JS code like I do now with
protoc-gen-grpc-web
?Am I completely wrong?