2.0.2 • Published 6 years ago

@hayato/plugin-healthz v2.0.2

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
6 years ago

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.)