question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Any way to use the official grpc package or @grpc/grpc-js as the Transport?

See original GitHub issue

Hi, 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:closed
  • Created 3 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
timostammcommented, Dec 21, 2020

Thanks for the feedback 👍

Let me know if you notice any problems.

0reactions
JCMaiscommented, Dec 21, 2020

@timostamm I just tested the new transport and it seems to be working great. Thank you for taking the time to implement it!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found