@hayato/plugin-healthz
v2.0.2
Published
HTTP health check
Readme
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 healthzAdds 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.)
