Implementation of the gRPC Health Checking Protocol (defined by grpc-health-probing) for nice-grpc servers. Version 2.0.x is stable, actively maintained, with a simple API to register a health service and set service status. It integrates tightly with nice-grpc and uses the native gRPC health check proto. Compared to alternatives like grpc-js-health-check, it provides a typed, async-friendly interface for nice-grpc users.
npm install nice-grpc-server-healthNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Creates a gRPC health service and registers it on a nice-grpc server.
Import from 'nice-grpc-server-health/generated/health' instead of 'nice-grpc-server-health/proto'
Use `createHealthService` with `ServerHealthDefinition` instead.
Register the health service as one of the first services on the server.
Use `SERVING` for healthy services, `NOT_SERVING` only for intentional unavailability.
Upgrade to nice-grpc v2 and use this package accordingly.
Replace `serverHealth()` with `createHealthService()` and pass options object.
Update to v2 and use the correct path: 'nice-grpc-server-health/generated/health'.
Register health service first using `server.addService(ServerHealthDefinition, healthImpl)` before any other service.