options for @grpc/proto-loader to load .proto file. In detail, please check here out. Default is null
rules
Array<Rule>
Required
Array of Rules
Rule
prop name
type
required/optional
description
method
String
Required
path to .proto file
streamType
Enum<"client"|"server"|"mutual">
Optional
Type of stream. Set client if only using client side stream, set server if only using server side stream, and set mutual if using both of client and server side stream. Set null/undefined if not using stream. Default is null
input
Object|String
Required when streamType is null or server
Specifying an expected input. Raw object or pattern string(RegExp) is available
output
String
Required when streamType is null or client
Specifying an output to an expected input
stream
Array<Chunk>
Required when streamType is client, server and mutual
Array of Chunks
error
Object
Optional
If provided, server will respond with this error object
Chunk
prop name
type
required/optional
description
input
Object|String
Required when streamType is client. Optional when streamType is mutual
Specifying an expected input. Raw object or pattern string(RegExp) is available.
output
Object
Required when streamType is server. Optional when streamType is mutual