API Constructor - AkashBabu/lib-grpc-client-pool GitHub Wiki

const client = new GRPCClient(PROTO_FILE_PATH, options);

options (object)

Property Description
packageName Name of the package in .proto file specified
serviceName Name of the service to use in .proto file specified
url gRPC-Server Connection URL
maxConnections (optional) MaxConns limit for this pool. Defaults to 2
rpcPrefix (optional) Prefix to be added to each method, for logical segregation in Namespace. Defaults to RPC
poolInterval (optional) Interval for checking for a free client in milliseconds. Defaults to 200 ms
staticFile (optional) If true, assumes that the given PROTO_FILE_PATH is for statically generated code (protobuf). Defaults to false