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

@zcong/node-grpc-health-check

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zcong/node-grpc-health-check

Health check client and service for use with @grpc/grpc-js.

  • 0.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

node-grpc-health-check

NPM version NPM downloads codecov JS Test

Health check client and service for use with @grpc/grpc-js.

Background

This package exports both a client and server that adhere to the gRPC Health Checking Protocol.

Why not grpc-health-check

  • grpc-health-check is for deprecated native grpc package not for @grpc/grpc-js
  • grpc-health-check implements an expired protocol of gRPC Health Checking Protocol not the latest version

Features

  • 100% Typescript
  • implements the latest version of gRPC Health Checking Protocol
  • API is similar to grpc-health-check
  • support shutdown and resume method like grpc-go

Install

$ yarn add @zcong/node-grpc-health-check
# or npm
$ npm i @zcong/node-grpc-health-check --save

Usage

Server

import { HealthImplementation, service, ServingStatus } from '../src'

const server = new grpc.Server()
const h = new HealthImplementation({
  '': ServingStatus.NOT_SERVING,
  test1: ServingStatus.SERVING,
})
server.addService(service, h)

Client

Any gRPC-node client can use @zcong/node-grpc-health-check to run health checks against other servers that follow the protocol.

Full examples can be viewed at ./example.

License

MIT © zcong1993

Keywords

FAQs

Package last updated on 23 Sep 2021

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