[![License](https://img.shields.io/badge/License-BSD3-lightgrey.svg)](https://opensource.org/licenses/BSD-3-Clause) # Example Javascript Client Using Generated GRPC API This sample script utilizes `@grpc/proto-loader` to dynamically load `.proto` files at runtime, and `@grpc/grpc-js` to implement gRPC functionality for Node.js. ## Prerequisites Node 12+ is recommended ## Usage Clone the [triton-inference-server/common](https://github.com/triton-inference-server/common/) repository: ``` git clone https://github.com/triton-inference-server/common/ -b common-repo ``` \ should be the version of the Triton server that you intend to use (e.g. r21.05). Copy __*.proto__ files to `./proto` ``` mkdir proto cp common-repo/protobuf/*.proto ./proto/ ``` Install dependencies with ``` npm install ``` Finally, run with ``` node client.js ``` - `host` is the server where triton inference server is running. Default is `localhost`. - `port` is the grpc port of triton inference server. Default is `8001`.