@hayato/plugin-healthz
TypeScript icon, indicating that this package has built-in type declarations

2.0.2 • Public • Published

healthz

Health check

Usage

import healthz from '@hayato/healthz'

healthz(app, { port: 8080 })

API

healthz

export function healthz(app: App, { port = 8080 }: { port?: number }): void
export default healthz

Adds a health-checking HTTP server to the app.

The health check will succeed if Client#readyAt is available. (A failing check should indicate an initial faulty connection with Discord, e.g. bad token.)

Readme

Keywords

Package Sidebar

Install

npm i @hayato/plugin-healthz

Weekly Downloads

1

Version

2.0.2

License

MIT

Unpacked Size

5.66 kB

Total Files

7

Last publish

Collaborators

  • seangenabe