Any way to use the official grpc package or @grpc/grpc-js as the Transport?
See original GitHub issueHi, I’m currently using the protoc-gen-grpc
CLI to generate Typescript type definitions from .proto
files.
I just checked the output generated by protobuf-ts
and it’s much better, it even keeps the comments, which is awesome!
However, I could not find a way to use it with either grpc
or @grpc/grpc-js
as the transport layer. Is this possible?
With protoc-gen-grpc
I can simply call any client like the following:
const client = new SomethingCustomService(grpcEndpoint, credentials.createInsecure());
const apiReq = new SomethingCustomTriggerCallRequest();
apiReq.setField('abc')
client.somethingCustomTriggerCall(apiReq, (err, resp) => {})
And I wanted to do something similar with this library.
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (5 by maintainers)
Top Results From Across the Web
gRPC
gRPC is a modern open source high performance Remote Procedure Call (RPC) framework that can run in any environment. It can efficiently connect...
Read more >Add server interceptors · Issue #419 · grpc/grpc-node - GitHub
Hi, I'm using grpc-node native package for building backend API. ... since I need server interceptors any way to be able to use...
Read more >gRPC - Microservices - A progressive Node.js framework
gRPC. gRPC is a modern, open source, high performance RPC framework that can run in any environment. It can efficiently connect services in...
Read more >How to setup and test TLS in gRPC/gRPC-Web - ITNEXT
We will use an official @grpc/grpc-js package both for the server and client side here. Server-Side TLS. Server-Side TLS requires only the server...
Read more >Building a secure API with gRPC - Snyk
This article will demonstrate how to use gRPC via a client and server-like communication between two Node.js applications.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for the feedback 👍
Let me know if you notice any problems.
@timostamm I just tested the new transport and it seems to be working great. Thank you for taking the time to implement it!