Skip to content

API Constructor

Akash Babu edited this page Jul 9, 2018 · 2 revisions
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

Clone this wiki locally