Skip to main content

Environment variables (server)

All four keys are required to enable the publisher; the fifth is optional.
When any of the four required keys is missing, getPusherClient() returns null, the publisher degrades to log-only mode and the health probe reports the component as down.

Health probe

The integration health service issues a cheap authenticated GET /channels against the Pusher HTTP API (checkPusher()), combined with real publish traffic recorded via recordIntegrationOutcome("pusher", ...). Better Stack tracks the component as INT-06 on the status page.

Troubleshooting

NEXT_PUBLIC_PUSHER_KEY is empty. Set it for the environment (public value) and redeploy the app so the build-time variable is baked in.
The auth endpoint is misconfigured or the caller lacks pusher:auth. Verify the app proxies to POST /api/v3/realtime/pusher/auth and the channel matches private-(contract|account)-{uuid}.
Read the reason of the pusher_auth_decision log line: presence_disabled means maihuego-machine-realtime-publish-presence is off (clients in presence-with-fallback move to the public channel); machine_mismatch or machine_inactive means the machine key is not bound to that live machine; missing_permission means the user lacks pusher:totem or pusher:totem-session.
The live list needs Horizon on the presence channel (maihuego-machine-realtime-mode-enterprise). Last seen and recent activity need the Pusher webhooks pointed at POST /api/v3/integration/pusher/webhook; a pusher_webhook_signature_invalid log line means the dashboard posts with another app’s secret.
Confirm the client cluster matches the server cluster (INTEGRATION_PUSHER_CLUSTER vs NEXT_PUBLIC_PUSHER_CLUSTER) and that both sides use the same Pusher app.
A 4xx never flips the verdict, but a missing GET /channels capability or a network error will. Check the server credentials and outbound network.

Client-side debug

usePusherChannel prints verbose lifecycle logs when either localStorage.setItem("bbl:pusher:debug", "1") is set from the browser console or ?pusher_debug=1 is appended to the URL.