Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grpc-js-health-check

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grpc-js-health-check

Implementation for gRPC health check using @grpc/grpc-js

  • 1.2.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

grpc-js-health-check

Implementation for gRPC health check using @grpc/grpc-js

This package is drop-in replacement for grpc-health-check

Example

const { servingStatus, Implementation, service } = require('grpc-js-health-check');

const statusMap = {
  '': servingStatus.SERVING,
  'ServiceFoo': servingStatus.NOT_SERVING,
  'ServiceBar': servingStatus.SERVING,
};
const healthImpl = new Implementation(statusMap);

// add to gRPC server
server.addService(service, healthImpl);

// set service status
healthImpl.setStatus('ServiceFoo', servingStatus.SERVING);

For more example, please take a look on the test

Change notes

Version 1.2.x

  • Implement watch method
  • Update the dependencies
  • Dependencies:
    • @grpc/grpc-js: 1.9.13
    • @grpc/proto-loader: 0.7.10

Version 1.1.x

  • Update the dependencies
  • Dependencies:
    • @grpc/grpc-js: 1.8.12
    • @grpc/proto-loader: 0.7.5

Version 1.0.x

  • First release, this package is drop-in replacement for grpc-health-check
  • Dependencies:
    • @grpc/grpc-js: 1.2.2
    • @grpc/proto-loader: 0.5.5

Keywords

FAQs

Package last updated on 13 Dec 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc