Getting Started
Troubleshooting
Common Sockudo setup and integration issues.
Connection Fails Immediately
Checklist:
- Server is reachable:
curl http://host:6001/up - App key exists and app is enabled.
- Client points to
wsHost/wsPort(orwssPort+ TLS) correctly. - Reverse proxy forwards WebSocket upgrade headers.
400/401 on HTTP API Publish
/apps/{appId}/events and related routes require Pusher-style signed query params:
auth_keyauth_timestampauth_versionbody_md5(required for non-empty POST body)auth_signature
Also ensure clock skew is under 10 minutes.
Private/Presence Subscribe Auth Errors
- For
private-*andpresence-*, returnauthfrom your auth endpoint. - For
presence-*, include validchannel_dataJSON withuser_id. - Signature must use exact channel name and socket ID from request.
/up Returns ERROR
/up returns 503 if critical components fail (adapter/cache health checks).
Check server logs and dependent services (Redis/NATS/SQL).
Messages Arrive but Delta/Filter Features Do Not Work
This is expected with plain pusher-js or Laravel Echo clients.
Use @sockudo/client for:
subscribe(channel, filter)- Automatic
pusher:deltareconstruction - Per-subscription delta settings
Metrics Not Available
- Enable metrics:
METRICS_ENABLED=true - Confirm metrics listener:
METRICS_HOST+METRICS_PORT(default9601) - Query metrics endpoint directly:
http://host:9601/metrics