2.0.3 • Published 3 months ago
nice-grpc-common
Licence
MIT
Version
2.0.3
Deps
1
Size
63 kB
Vulns
0
Weekly
0
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.