Create a new gRPC transport instance.
Transport configuration options.
Load a .proto file and register all discovered service constructors.
OptionalprotoPath: stringPath to the .proto file. Falls back to GrpcTransportConfig.protoPath.
OptionalpackageName: stringDot-separated package name. Falls back to GrpcTransportConfig.packageName.
Execute a unary gRPC call wrapped in a promise.
Automatically applies metadata and deadline from both the transport configuration and per-call options.
The service stub obtained from getService.
The RPC method name on the service.
The request payload.
Optional per-call overrides for deadline and metadata.
A promise that resolves with the response message.
Thin adapter over
@grpc/grpc-jsfor performing gRPC calls.Dependencies (
@grpc/grpc-js,@grpc/proto-loader) are loaded lazily at runtime so they remain optional peer dependencies.Example
Since
1.0.0