Questions tagged [grpc-node]

grpc-node is a high-performance, open-source universal RPC framework for Node.js platform.

gRPC is an open source remote procedure call (RPC) system initially developed at Google. It uses HTTP/2 for transport, Protocol Buffers as the interface description language, and provides features such as authentication, bidirectional streaming and flow control, blocking or nonblocking bindings, and cancellation and timeouts.

grpc-node repository

gRPC Node Quick Start

222 questions
0
votes
1 answer

How to properly format response object based on protobuf grpc specification

I have the following protobuf definition: service MyService { rpc ServiceMethod (ServiceMethodRequest) returns (ServiceMethodResponse) {} } message ServiceMethodRequest{ string requestParam = 1; } message ServiceMethodResponse{ Error…
M.Vas
  • 1
  • 1
  • 3
0
votes
0 answers

Integer valued to 0 not present in output using GRPCv3

I am using GRPCv3 on node.js I have a .proto file with the following message: message ProductAvailabilityWithRatesResponse { // How many slots are available for this day/time. Mandatory. int32 capacity = 1; // Date for when this product…
user1014351
  • 437
  • 1
  • 5
  • 16
0
votes
1 answer

Should gRPC server-side half-closing implicitly terminate the client?

In the http2-spec, the scenario where the server half-closed the stream (server sent http2.END_STREAM), the client is still allowed to send data (since it's half-closed). Consider the following gRPC scenario: Client opens bidi-stream to server and…
user3612643
  • 5,096
  • 7
  • 34
  • 55
0
votes
1 answer

Overriding "root" object value of GraphQL Union/Interface type

I have an Apollo GraphQL service that delegates to an internal gRPC service. This service has an endpoint which returns a message that contains a oneof, which I'm mapping to a Union in GraphQL. This is straightforward, but there's a fair degree of…
Kris Pruden
  • 3,280
  • 4
  • 25
  • 30
0
votes
2 answers

gPRC how to send array data from the server to the client [gPRC + Node.js]

I m trying to send an array data object from the server.js to the client.js but I get undefined. What is the correct way to send this data types - string - number - Object - array I m trying to send a simple array data from the master to the…
George C.
  • 6,574
  • 12
  • 55
  • 80
0
votes
1 answer

How to dynamically create gRPC proto schema in nodejs?

Loading .proto files can be done by providing file path (PROTO_PATH) var packageDefinition = protoLoader.loadSync( PROTO_PATH, {keepCase: true, longs: String, enums: String, defaults: true, oneofs: true }); How to do…
npr
  • 4,325
  • 4
  • 20
  • 30
0
votes
1 answer

Enable compression in nodejs grpc server

Is there any way to enable compression in a grpc-nodejs server? It seems that it's possible to implement it, since it can deflate/unzip compressed data, but cannot compress while sending the response back. I spun up the test nodejs server, and…
darkryder
  • 792
  • 1
  • 8
  • 25
0
votes
0 answers

Accessing Google Cloud Pubsub over HTTP 2 using grpc and node js

I am trying to use grpc with google cloud pubsub in nodejs but I am unable to understand how it works and how it is implemented there are no samples in nodejs and documentation is not clear for grcp. There are only function in documentation I have…
Unknown
  • 373
  • 1
  • 4
  • 15
-1
votes
1 answer

Yarn install is failing

I know i shouldn't just throw a question like this and wish i can provide more information, but i am really no idea what it is and it also my first time encounter such issue (after change to new laptop), i think currently i can only provide the…
-1
votes
1 answer

Why is that only http or gRPC is able to start up in go application?

I am trying to start http and gRPC service at the same time in a Go application. But to my surprise only http server or gRPC server can start up. func main() { xxhh.Test1() xxhh.Test2() app := fiber.New() app.Get("/", func(c…
David
  • 2,691
  • 7
  • 38
  • 50
-1
votes
1 answer

Can not run firebase commands in console: Error(`@grpc/grpc-js only works on Node ${supportedNodeVersions}`)

In terminal when I run firebase... gives the following error: Error(`@grpc/grpc-js only works on Node ${supportedNodeVersions}`) How can I delete this grpc? or what should I do?
Nurseyit Tursunkulov
  • 8,012
  • 12
  • 44
  • 78
-1
votes
1 answer

How to add metadata to streaming client call [Nodejs]

How to add metadata to streaming client call [Nodejs] let meta = new grpc.Metadata(); meta.add('authorization', 'token'); let call = client.StreamCall(); call.write(data); call.end();
Ivan
  • 11
  • 1
1 2 3
14
15