cef499fbb5
The Gateway WS health probe sampled only transport state — ready, open, heartbeat-ACK age, latency. A socket that stays ESTAB and keeps ACKing while zero gateway frames arrive (the #109521 "connected-but-deaf" incident) read healthy indefinitely, and the adapter went silent for hours with no log line and no watchdog firing. Two defects fixed: 1. Dispatch-side dimension. `on_socket_raw_receive` now stamps `_last_gateway_frame_at` for every inbound raw gateway frame — heartbeats and ACKs included, so a legitimately quiet server is not flagged. The health check gains an `event_silence` reason with its own bound, `websocket_event_max_silence_seconds` (default 300s, 0 disables the dimension alone). The stamp resets on `on_ready` so a reconnect never inherits pre-restart silence. Trip path is unchanged: consecutive failures -> retryable `discord_websocket_health_stale` -> the existing reconnect watcher builds a fresh adapter. 2. Silent probe disable. `_finite_positive_config_float` / `_config_int` mapped anything `float()` rejects ("15s", "nan", "true") to 0.0 with no log line, permanently disabling the watchdog invisibly. Unparsable and non-positive values now log one WARNING naming the knob and raw value. The new key rides the existing `_YAML_WEBSOCKET_LIVENESS_KEYS` seeding and is documented in the Discord guide's liveness section.
Website
This website is built using Docusaurus, a modern static website generator.
Installation
yarn
Local Development
yarn start
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
Build
yarn build
This command generates static content into the build directory and can be served using any static contents hosting service.
Deployment
Using SSH:
USE_SSH=true yarn deploy
Not using SSH:
GIT_USER=<Your GitHub username> yarn deploy
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the gh-pages branch.
Diagram Linting
CI runs ascii-guard to lint docs for ASCII box diagrams. Use Mermaid (````mermaid`) or plain lists/tables instead of ASCII boxes to avoid CI failures.