2.0.2 • Published 6 years ago
@hayato/plugin-healthz v2.0.2
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.)
2.0.2
6 years ago