Production checklist
Use this checklist before launching a DNotifier integration to production. It covers credentials, transport choice, limits, observability, and operational readiness.
Account and application
β
Production app created with rotated secret (not the dev secret)
β
Plan limits reviewed β messages, AI, knowledge base, users
β
userId scheme documented (how IDs map to users, devices, bots)
β Create an app Β· Pricing & plans
Credentials and secrets
β
Secrets stored in environment variables or a secret manager β not in git
β
.env and secret files in .gitignore
β
Browser / mobile builds do not embed production secrets
β
Secret rotation procedure documented
β Credentials & environment Β· Security best practices
Transport architecture
β
transport: "ws" for realtime chat and live delivery
β
transport: "http" for AI, RAG, workflows, and serverless
β
Node.js WebSocket clients pass WebSocketImpl (ws package)
β
Reconnection strategy implemented for onDisconnected
Messaging and data
β
senderId and receiverId / receiverIds validated server-side where possible
β
saveHistory behavior defined per message type
β
Large payloads tested against messageSizeLimit from plan
β
Chunked message handling verified in onMessage
β Plan limits & quotas Β· Large messages & chunking
AI and knowledge base (if used)
β
aiEnabled checked after connect() before calling sendAI
β
Monthly AI request and word limits understood
β
Knowledge-base document size within plan word caps
β
logs: true enabled only when dashboard session tracking is desired
β AI overview
Workflows (if used)
β
Agents registered before runWorkflow
β
observability: true for production debugging in dashboard
β
Workflow errors caught and surfaced to callers
β
Long-running workflows tested for timeout behavior
Error handling and resilience
β
connect() failures handled with user-visible or logged errors
β
Auth 400 responses diagnosed (wrong secret, invalid app)
β
Graceful disconnect() on process shutdown
β
Idempotent reconnect (no duplicate listeners)
β Error handling & reconnection Β· Troubleshooting
Monitoring and operations
β
Connection state exposed in UI or health checks
β
Structured logging for connect, disconnect, send failures
β
Dashboard reviewed for AI sessions and workflow executions
β Debugging
Security review
β
Least-privilege: each service uses its own userId
β
Input validation on message payloads before display (XSS)
β
TLS only β no custom endpoints over plain ws:// in production
β
Rate limiting on your API layer if clients proxy through you
Pre-launch smoke test
Run this sequence in a staging environment:
connect()with production credentials βonConnectedfiresgetPlanLimits()returns expected capsSend text message A β B β received in
onMessage(If AI)
sendAIreturns a response whenaiEnabledis true(If workflows)
runWorkflowcompletes withexecutionIddisconnect()cleans up without errors
Related guides
Last updated