You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We would like to let the OS decide on which port our gRPC service listens on. This is achieved by passing port 0 all the way down.
Requesting for a random port already works, but we have no way of knowing which port is allocated because rxjs-grpc doesn't expose the return value of this line.
Any chance you could expose it?
Thank you
The text was updated successfully, but these errors were encountered:
You can achieve it now by passing the grpc.Server instance to the serverBuilder.
constgrpcServer=newgrpc.Server();constserver=serverBuilder<helloworld.ServerBuilder>('helloworld.proto','helloworld',grpcServer);// server.addGreeter({ ... });constport=grpcServer.bind('0.0.0.0:0',grpc.ServerCredentials.createInsecure());grpcServer.start();console.log(`Listening on port ${port}`);
Hi,
We would like to let the OS decide on which port our gRPC service listens on. This is achieved by passing port
0
all the way down.Requesting for a random port already works, but we have no way of knowing which port is allocated because
rxjs-grpc
doesn't expose the return value of this line.Any chance you could expose it?
Thank you
The text was updated successfully, but these errors were encountered: