Client is a gRPC client that can interact with a gRPC server.
⚠️ Note: Only unary RPCs are currently supported, i.e. there is no support for client, server or bidirectional streaming.
Method | Description |
---|---|
Client.load(importPaths, ...protoFiles) | Loads and parses the given protocol buffer definitions to be made available for RPC requests. |
Client.connect(address [,params]) | Opens a connection to the given gRPC server. |
Client.invoke(url, request [,params]) | Makes an unary RPC for the given service/method and returns a Response. |
Client.close() | Close the connection to the gRPC service. |