nice-grpc-common
v2.0.2
Published
Common stuff for nice-grpc and nice-grpc-web
Downloads
543,522
Readme
nice-grpc-common
Common data structures and types for
nice-grpc
and nice-grpc-web
.
If you are making a middleware library, consider depending on
nice-grpc-common
, as it is considered more stable in terms of semver. Also,
this allows you to build an isomorphic client middleware (working on both
Node.js and the Browser).
For application code, use nice-grpc
or nice-grpc-web
directly. Both
re-export names from nice-grpc-common
.
Installation
npm install nice-grpc-common
Contents
Metadata
— represents gRPC Metadata.Status
— enum with gRPC status codes.CallContext
— call context passed to server methods.ServerError
.ServerMiddleware
.composeServerMiddleware
.CallOptions
— call options accepted by client methods.ClientError
.ClientMiddleware
.composeClientMiddleware
.